Now handles invalid schemas and broken json.