Answers for "generate a json in java"

2

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);
Posted by: Guest on April-25-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language