JSON schema validation

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

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