Quantcast
Channel: JSON order mixed up - Stack Overflow
Viewing all articles
Browse latest Browse all 18

Answer by Valentyn Kolesnikov for JSON order mixed up

$
0
0

Underscore-java uses linkedhashmap to store key/value for json. I am the maintainer of the project.

Map<String, Object> myObject = new LinkedHashMap<>();myObject.put("userid", "User 1");myObject.put("amount", "24.23");myObject.put("success", "NO");System.out.println(U.toJson(myObject));

Viewing all articles
Browse latest Browse all 18

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>