Say I submit a form via Ajax and need a response from the server:
- Pass/fail indicator
- On fail, a list of validation errors with associated field ids/names, etc
Is there a standard or best practice for the JSON format for such a structure? If so, I'd like to try to stick to it instead of coming up with my own convention.