I want to create org.json.JSONObject from String.
the String is "user.phone.num : 00113". the result that i would like to have is org.json.JSONObject object with this format:
{
user:
{
phone: {num: 00113}
}
}
so is there any built in method to achieve this result. Thanks.
org.json.JSONObjector maybe just simpleStringbut inJSONformat?org.json.JSONObject.attr1.attr2: ebrahimand the second isatt3: ps. I build these json object , then i build the global json object