On Thursday, 24 July 2014 at 15:15:37 UTC, Pavel wrote:
string s = parsed["fail"].str;
Since there is no entry "fail" in the object, it returns a null JSON_VALUE pointer. Trying to get the string out of it is then seen as a null pointer access and kills the program.
Check for null on a key before trying to get a value out.
