HI I am new to JSON and I have to create the below JSON from Java.
{{ "TESTMAIN" : { "TEST1" : { "384" : "250", "96" : "450" },
"TEST2" :{ "384" : "5", "96" : "10" },
"TEST3" : "256",
"TEST4" : "T" }
I have created each object using JSONObject.put. But how to combine the 4 TEST objects with the text TESTMAIN. Any idea?