Suppose I submit a form through Ajax and am awaiting a response from the server:
- Pass/fail status
- If fails, a compilation of validation errors including corresponding field ids/names, etc
Is there a widely adopted or recommended JSON format for organizing such information? If there is, I'd prefer to follow that rather than inventing my own convention.