Here is a JSON object example:
JSONObject childDepenObj = new JSONObject();
In this object, keys and values are added as follows:
childDepenObj.put("COL_CHLD_NULFY", gridObjectArray[86]);
childDepenObj.put("COL_CHLD_MAN", gridObjectArray[87]);
Now, I have another JSON Object:
JSONObject gridObject = new JSONObject();
I am using the first JSON object as a value in the above object:
gridObject.put("hiddenObj", childDepenObj);
My question is how to access the key and values of the first JSON object from the frontend,
When trying to access it like this:
response.hiddenobj;
The response is coming under hiddenObj. If I want to directly access the key and value like:
response.COL_CHLD_NULFY;
It shows as undefined. Can anyone help me with this?