iOS Question Error JSON NSCocoaErrorDomain Code=3840 "Garbage at end.

MarcoRome

Expert
Licensed User
Longtime User
Hi All, i have this code

B4X:
Dim JSON As JSONParser
    Dim Map1 As Map
    JSON.Initialize(File.ReadString(File.DirAssets, "test.json"))
    Map1 = JSON.NextObject
    Log("HERE")

for both environments, B4i and B4A.
On B4A and B4J it works without any problem.
On B4i it gives the following error:


despite being the exact same file.
Some idea ?
In attachment example... for B4i e B4A
Thank you All
 

Attachments

  • TESTJSON-B4A.zip
    31.8 KB · Views: 267
  • TESTJSON-B4i.zip
    27.4 KB · Views: 271

MarcoRome

Expert
Licensed User
Longtime User
I hadn't noticed this.
Because both in B4A, both in B4J, but also in Json Tree, everything works correctly

 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…