How get the response from the server with a list of objects. Now I want to know how can I get some part of the data on my client side. My JSON looks like this
now I when I do this(see below code) I get result of some values but some are retuning null( the LISTGRID RECORD 2 and LISTGRID RECORD 3 are NULL). what am I doing wrong
Record getQty = orderGrid.getEditedRecord(i);JavaScriptObject jsObj = getQty.getJsObj();JSONObject o = new JSONObject(jsObj);System.out.println("LISTGRID RECORD 1 "+o.toString());System.out.println("LISTGRID RECORD 2 "+o.get("section")); //RETURNING NULLSystem.out.println("LISTGRID RECORD 3 "+o.get("supplierId")); //RETURNING NULLSystem.out.println("LISTGRID RECORD 4 "+o.get("productId")); System.out.println("PRODUCT QTY "+o.get("id")+" PRODUCT QTY "+o.get("orderQty")); // PRODUCT QTY 9 PRODUCT QTY 7500
System.out.println((JSONOb