[Gambas-user] Error in JSON decode with large json data

Safiur Rahman isafiur at gmail.com
Fri Apr 28 06:44:03 CEST 2023


Hi

I have a large valid JSON file datafile.json
When I try to convert into Variant[]
    sText = File.Load("data/datafile.json")
    xVar = JSON.Decode(sText)
    Message.Info(xVar.Count)

I get this error
    Incorrect number [JSON.ReadNumber.213]

Attached a project to reproduce it

-- 
Regards
Safiur Rahman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230428/ad55f765/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: json.tar.xz
Type: application/x-xz
Size: 355180 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230428/ad55f765/attachment-0001.xz>


More information about the User mailing list