Closed
Description
The parser is accepting "{}foobar" as valid JSON. The code fragment is:
Json::CharReaderBuilder reader;
reader.strictMode( &reader.settings_ );
std::istringstream chrStream( "{}foobar" );
Json::Value root;
std::string errs;
bool result( Json::parseFromStream( reader, chrStream, &root, &errs ) );
std::cout << "Result " << result << " errs " << errs << std::endl;
And result comes back as true in this case and writing out the resulting JSON returns "{}". Or am I doing something wrong?
Metadata
Metadata
Assignees
Labels
No labels