Closed AlanLyttonJones closed 9 years ago
When I use your file and the same code as you in the current version, the output file has a size of 36KB (larger because of the indentation) and the content seems to be complete.
Could you provide more details on how to reproduce the issue?
Did you checked the encoding and file opening mode?
That was a very old message. I have since moved to JsonCpp and have no problems.
Alan
From: Zylann [mailto:notifications@github.com] Sent: Sunday, December 29, 2013 8:50 PM To: anhero/JsonBox Cc: Alan Jones Subject: Re: [JsonBox] Problem parsing large file (#11)
Did you checked the encoding and file opening mode?
— Reply to this email directly or view it on GitHub https://github.com/anhero/JsonBox/issues/11#issuecomment-31330642 . https://github.com/notifications/beacon/4007611__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwMzkwMTAwMCwiZGF0YSI6eyJpZCI6OTA0NTg0N319--4794c34b7e1861dee6a4cecb72612a38d3d2be3a.gif
I have a JSON file, produced by another program. I'm having a problem parsing it. As a test I wrote a three-line program:
JsonBox::Value meta; meta.loadFromFile("file_In.txt"); meta.writeToFile("file_out.txt");
The "file_in.txt" is 22 KB; "file_Out.txt" is only 7 KB and much of the data is missing.
If someone can try this, I have put the file in DropBox:
http://db.tt/lOF8PiX6
Thanks.
Alan