Validator.nu JSON Output
This is a draft of a Web service response format for Validator.nu for clients that prefer JSON over XML.
Italicized words, such as object, refer to JSON data types.
The root object is a JSON object. It has two mandatory keys,
"result", and three optional keys,
The values for these keys are described below.
The this array is an ordered collection of zero or more message objects.
A message object has one mandatory key,
"class", and seven optional keys,
"class" string denotes the general class of the message. The permissible values are
means an informational message or warning that does not affect the validity of
the document being checked.
a problem that causes the validation/checking to fail.
signifies an error that causes the checking to end in an indeterminate state because
the document being validated could not be examined to the end. Examples of such errors include broken schemas, bugs in the validator and IO errors. (Note that when a schema has parse errors, they are first reported as
errors and then a catch-all
non-document-error is also emitted.)