Hey there! {} and [] should be a valid empty JSON object/array. Instead, it creates - parse error - unexpected end of input. Example: nlohmann::json j; std::stringstream ss("{}"); ss >> j; Greetings
Activity
boguscoder commentedon Nov 5, 2016
What version have you tried? I've tried both {} and [] and got expected result
nlohmann commentedon Nov 5, 2016
There was a bug with too short inputs in 2.0.6. Please try 2.0.7, see https://github.com/nlohmann/json/releases/tag/v2.0.7
nlohmann commentedon Nov 11, 2016
@SmoofBullet Did you try the 2.0.7 version?
maleafl commentedon Nov 14, 2016
Yes, i have tried the new version and the error disappeared. Thx!