Skip to content

Instantly share code, notes, and snippets.

@samwgoldman samwgoldman/request.json
Last active Aug 29, 2015

Embed
What would you like to do?
Example of nested errors in JSON
{
"object": {
"groups": [
{
"options": [
{
},
{
}
],
"description": null,
"name": null
}
],
"type": null,
"status": null,
"name": null
}
}
{
"errors": {
"type": [
"is not included in the list"
],
"status": [
"is not included in the list"
],
"name": [
"can't be blank"
],
"groups": [
{
"options": [
{
"name": [
"can't be blank"
]
},
{
"name": [
"can't be blank"
]
}
],
"description": [
"can't be blank"
],
"name": [
"can't be blank"
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.