Mindtraveller Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
Experienced Contributor
If non-json data is met, old version of ParseJSON just returned error Value. The current version of ParseJSON looks like thrown an exception. This is not very good because it is different behavior which conflicts with old codebase. So I propose considering it a bug.
Mindtraveller wrote on Sun, 24 December 2017 21:48
If non-json data is met, old version of ParseJSON just returned error Value. The current version of ParseJSON looks like thrown an exception. This is not very good because it is different behavior which conflicts with old codebase. So I propose considering it a bug.
There was no change.
However, there were always two overloads:
Value ParseJSON(CParser& p);
Value ParseJSON(const char *s);