Made the error detection in the JSON parser a bit less draconic.