-
Notifications
You must be signed in to change notification settings - Fork 0
Validation Object
Gnof edited this page Apr 10, 2015
·
4 revisions
The Json Validator takes in a JSON following this specific format:
[
{
attribute:'foo',
value:'bar',
quantity: 1,
hierarchy: [[parent, node]],
ancestor: [parent],
composite: [{... some validator object }]
}
]
Passing in a (valid) validation object to the JsonValidator as well as a target JSON to validate it against will return you a boolean result. However, since you may want to know exactly what's going on with it in a programmatic way, it also returns to you a detailed result object for you to peruse.