Fix fail fast when JSON is valid