JSON parsing basics

sktanmoy

Active Member
Licensed User
Longtime User
I want to learn basic of JSON parsing. I mean when to use map, when to use list, when nextarray and when nextobject.
Any rich resource? I check a tutorial by Erel but failed to understand properly.:BangHead:
 

sktanmoy

Active Member
Licensed User
Longtime User
There are many resources in the internet about JSON format.
I worked with JSON for many web based app (PHP). So I know JSON.
The issue I'm facing is to use that in B4A.

For instance, in json, {} is for object and [] for array.

JSON library has NextArry and NextObject. I checked some tutorial but didn't noticed to use nextarray for []. Ex. This One

Same confusion in using map and list.

I need to be clear about usage of those.:sign0104:
 
Upvote 0

sktanmoy

Active Member
Licensed User
Longtime User
If the json string starts with { => call JSON.NextObject
If the json string starts with [ => call JSON.NextArray


I knew that but this made me confused.

NextArray wasn't used there. There was an array only. Is that the reason?
 
Upvote 0
Top