Mashiane Expert Licensed User Longtime User Jul 30, 2018 #1 Hi I have attached my example here. I'm getting an unterminated object error when parsing my json strings to map i.e. returns empty map, others seem to work fine. What am I missing? Attachments JsonParser.zip 7.5 KB · Views: 196
Hi I have attached my example here. I'm getting an unterminated object error when parsing my json strings to map i.e. returns empty map, others seem to work fine. What am I missing?
Mashiane Expert Licensed User Longtime User Jul 30, 2018 #2 Now I know, I didnt have to parse the values again as they are already maps... So I have been coding this wrong all this time?? B4X: For mCnt = 0 To mTot Dim childmap As Map = jmap.GetValueAt(mCnt) Log(childmap) Next Upvote 0
Now I know, I didnt have to parse the values again as they are already maps... So I have been coding this wrong all this time?? B4X: For mCnt = 0 To mTot Dim childmap As Map = jmap.GetValueAt(mCnt) Log(childmap) Next
P Peter Meares Member Licensed User Longtime User Jul 31, 2018 #3 Small thing. Normally I would expect mTot - 1, otherwise you over count on the items. You might have that covered in the code elsewhere. Upvote 0
Small thing. Normally I would expect mTot - 1, otherwise you over count on the items. You might have that covered in the code elsewhere.
M mindful Active Member Licensed User Aug 2, 2018 #4 I think you have to place some " before and at the end of string values, something like : B4X: id="Super User.suprojectsapproval" Upvote 0
I think you have to place some " before and at the end of string values, something like : B4X: id="Super User.suprojectsapproval"