Read the passage and select the option that best preserves the JSON contract under failure conditions.

Answer

Return a JSON object that includes error_reason and uses null for missing fields while keeping the same keys

Explanation

Keeping the same keys preserves the JSON contract, while null values and an explicit error_reason prevent fabrication. Validating structure ensures downstream systems can handle failures safely.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list