import org.json.JSONObject;
public class TestFile {
public static void main(String d[]) throws Exception{
String ch = "{'r':1,'is':'abc'}";
JSONObject js = new JSONObject(ch);
System.out.println(js);
}
}
When i run this program it the JSONObject prints {"is":"abc","r":1}, but i want in the same order of which the original string as it is.
please help me.
Thanks.
Regards
S.Chinna