kazuho/picojson

Parse error syntax error at line 1 near:

majimboo opened this issue · 2 comments

Hello,

What does this error mean? syntax error at line 1 near?
It happens with string err = picojson::parse... where err contains the error.

Sorry it's been a year, but if anyone else has this problem, it's probably an invalid input stream. For me, making an ifstream(...) and then an istream_iterator like in the example (but with a nonexistent file) didn't throw any exceptions until the parse().

i'm having the same issue when trying to parse a list of cards. Below is a valid sample file that will not parse successfully:
sample.json.txt