Question
Nokia
IN
Last activity: 30 Nov 2017 4:22 EST
How to parse a JSON with Dot/period in the Key
Hi,
What would be the page structure after parsing the below JSON sample.
{
"A.B":{
"C":"12346"
}
Thanks.
Note:- Initially I thought it would create A page. A.B as embedded page .C as single value property . So, i tried this with data page and source as activity . Inside activity i used adoptJSONObject() . But getting error in logs that A.B does not exist . A and B are of Page property belonging to @baseclass .
Also, we cannot create properties with dot . ex:- A.B .