Skip to main content

Posts

Showing posts with the label output

Simple Json Parser in Android

Java Class:private JSONObject jObject; private String jString = "{\"itemmenu\": {" + "\"itemid\": \"file\"," + " \"itemvalue\": \"File\"," + " \"itemarray\": { \"menuitem\": " + "[ " + "{\"value\": \"New\" , " + "\"onclick\": \"CreateNewDoc()\"}, " + " {\"value\": \"Open\"," + " \"onclick\":" + " \"OpenDoc()\"}," + "{\"value\": \"Close\"," + " \"onclick\": \"CloseDoc()\"}" + "]}" + "}" + "}"; public void onCreate(Bundle savedInstanceState) { ...