Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

build json object in java

String jsonString = new JSONObject()
                  .put("JSON1", "Hello World!")
                  .put("JSON2", "Hello my World!")
                  .put("JSON3", new JSONObject().put("key1", "value1"))
                  .toString();

System.out.println(jsonString);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #build #json #object #java
ADD COMMENT
Topic
Name
2+5 =