Question

1
Replies
309
Views
ChinmayaKumarB Member since 2017 1 post
WellsFargo
Posted: 2 years ago
Last activity: 2 years 9 months ago
Closed
Solved

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 .

Case Management
Moderation Team has archived post
Share this page LinkedIn