such as {"tag": "Sendcode", "data": {"phone": "18880488738"}}-->
First observe the key value pairs, the above a total of three key value pairs, the bottom is "phone": "18880488738", the above layer is "data": {"Phone": "18880488738"} and " Tag": "Sendcode",
1, you should first define a JSON object to install the underlying "phone": "18880488738"
-->jsonobject js1=new jsonobject ();
Js1.put ("Phone", "18880488738");
2. Then define a JSON object to load the "data" on the above layer : {"Phone": "18880488738"}
--Jsonobject js2=new jsonobject ();
Js2.put ("Data", js1);
3, finally put the remaining key value pairs in, observed "data": {"Phone": "18880488738"} and "tag": "Sendcode" is the same layer of the relationship, so you can put this key value directly in the JS2
-->js2.put ("tag", "Sendcode").
The last JS2 returned is the JSON object of this string.
Convert a JSON string into a JSON object