Test JSON formatting.