views:

552

answers:

1

I'm writing some acceptance tests for a java webapp that returns JSON objects. I would like to verify that the JSON returned validates against a schema. Can anyone suggest any tools for this?

+2  A: 

The JSON Tools project includes a tool to validate the contents of a JSON file using a JSON schema.

An alternative could be to validate running the (JavaScript) JSON Schema Validator using Rhino.

Simon Lieschke