SF #619 Syntax error in JSON parser #242

Closed
aleks-f opened this Issue Jul 22, 2013 · 0 comments

Projects

None yet

1 participant

@aleks-f
Member
aleks-f commented Jul 22, 2013

From https://sourceforge.net/p/poco/bugs/619/

Parsing a JSON with a new line directly following a floating-point number throws a syntax error.

Poco::JSON::Parser parser;
string jsonStr = "{ \"x\" : 1.0\n }";
parser.parse(jsonStr);

Works after an integer number and works without \n.

@aleks-f aleks-f was assigned Jul 22, 2013
@aleks-f aleks-f added a commit that referenced this issue Jul 22, 2013
@aleks-f aleks-f JSON bug fixes
GH #241: SF #620 Endless loop in JSON parser (added Buffer::setCapacity)
GH #242: SF #619 Syntax error in JSON parser (float/double trim)
20e1cf8
@aleks-f aleks-f closed this Jul 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment