JSON schema validation

This example demonstrates JSON schema validation. The JSON object in this example must contain properties like firstName and lastName, can can optionally have a property age which must be a positive integer.

See http://json-schema.org/ for more information.

object
{6}
firstName
:
John
lastName
:
Doe
gender
:
age
:
28
availableToHire
:
true
job
{3}