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));