Patch from Scott McKellar to correct some problems with _jsonParserError(),