The JSON parser now stops when it finds an error in the object scope.