B4J Question [solved] problem with array data in json

MarkusR

Well-Known Member
Licensed User
Longtime User
maybe is someone more firm in json parsing
i have this json and need iterate this array(list) "List_Packages"
and the data there "Pos_A_mm" and below "X","Y","Z"

my attempt
B4X:
    Dim J As JSONParser
    J.Initialize(JSON)
        
    Dim Map1 As Map
    Map1 = J.NextObject
        
    Dim Packages As Map
    Packages = Map1.Get("List_Packages")

 

MarkusR

Well-Known Member
Licensed User
Longtime User
i think i solved it myself with
B4X:
    Dim Packages As List
    Packages = Map1.Get("List_Packages")
 
Upvote 0

MarkusR

Well-Known Member
Licensed User
Longtime User
@OliverA ha ha, as i saw your comment i remember i saw this online tool months ago but i forget this nice tool existence.
thank you.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…