Skip to main content
with new version, complex object is also supported
Source Link
Spartan
  • 3.4k
  • 6
  • 29
  • 32

You can use:

new JSONObject(map);

Caution: This will only work for a Map<String, String>!

Other functions you can get from its documentation
http://stleary.github.io/JSON-java/index.html

You can use:

new JSONObject(map);

Caution: This will only work for a Map<String, String>!

Other functions you can get from its documentation
http://stleary.github.io/JSON-java/index.html

You can use:

new JSONObject(map);

Other functions you can get from its documentation
http://stleary.github.io/JSON-java/index.html

added 63 characters in body
Source Link
Willi Mentzel
  • 30.2k
  • 21
  • 120
  • 130

You can use:

 new JSONObject(map);

Caution: This will only work for a Map<String, String>!

Other functions you can get from its documentation
http://stleary.github.io/JSON-java/index.html

use

 new JSONObject(map);

Other functions you can get from its documentation
http://stleary.github.io/JSON-java/index.html

You can use:

new JSONObject(map);

Caution: This will only work for a Map<String, String>!

Other functions you can get from its documentation
http://stleary.github.io/JSON-java/index.html

deleted 7 characters in body
Source Link
Ankur
  • 12.8k
  • 7
  • 41
  • 68

use

 new JSONObject(map);

Other functions you can get from its documentation 
http://www.json.org/javadoc/org/json/JSONObject.htmlhttp://stleary.github.io/JSON-java/index.html

use

 new JSONObject(map);

Other functions you can get from its documentation http://www.json.org/javadoc/org/json/JSONObject.html

use

 new JSONObject(map);

Other functions you can get from its documentation 
http://stleary.github.io/JSON-java/index.html

Source Link
Ankur
  • 12.8k
  • 7
  • 41
  • 68
Loading