Question
1
Replies
450
Views
WellsFargo
Posted: November 27, 2017
Last activity: November 30, 2017
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 .
Hi,
As per the JSON structure it should create A.B page but class names are not allowed to create with ".", in this case you will face errors.