Error codes should be valid JSON.