JSON Schema Validation API




Validate your JSON documents using our simple and free JSON Schema Draft 4 validation API.

JSON Schema LogoAssertible logo

$ curl "https://assertible.com/json" -d'{
  "schema": {"type":"object"},
  "json": {}
}'
{"errors": [], "valid": true}

It's that simple. Try it out by copying the curl command into your terminal.










Try it online

Enter a JSONSchema on the left and your JSON on the right to validate it against the schema, or use the API.


JSONSchema
JSON










API Examples


Assertible's free JSON Schema API is designed to be easy to use and flexible for a variety of use-cases.


Document validation
$ curl "https://assertible.com/json" -d'{
  "schema": {
    "type": "object",
    "properties": {
      "billing_address":  { "$ref": "#/definitions/address" },
      "shipping_address": { "$ref": "#/definitions/address" }
    },
    "definitions": {
      "address": {
        "type": "object",
        "properties": {
          "street_address": { "type": "string" },
          "city":           { "type": "string" },
          "state":          { "type": "string" }
        },
        "required": ["street_address", "city", "state"]
      }
    }
  },
  "json": {
    "shipping_address": {
      "street_address": "1600 Pennsylvania Avenue NW",
      "city": "Washington",
      "state": "DC"
    },
    "billing_address": {
      "street_address": "1st Street SE",
      "city": "Washington",
      "state": "DC"
    }
  }
}'
{"errors":[], "valid": true}
Comprehensive error reporting
$ curl "https://assertible.com/json" -d'{
  "schema": {
    "type": "object",
    "properties": {
      "foo": { "type": "object" },
      "bar": { "type": "string" }
    },
    "required": [
      "foo"
    ]
  },
  "json": {"bar": [1,2,3]}
}'
{
  "valid": false,
  "errors": [
    "failed to validate required properties\
      - one of `[\"foo\"]` prop(s) missing in `{\"bar\":[1,2,3]}`",
    "Error at .bar: failed to validate type\
      - `[1,2,3]` is not a string"
  ]
}


This API does not support external JSON Schema references. Please submit a chat or send us a message if this is required for your testing purposes. See the JSON Schema API documentation for more details.



This JSON Schema Validation API falls under Assertible's terms of service and is intended for testing and exploratory purposes. We do not make any guarantees about the uptime and availability of the Free JSON Schema Validation API.













Continually test your JSON Schema documents


Using Assertible, you can monitor your API and validate your endpoints against JSON Schema documents every time you deploy and on scheduled


API performance monitoring and metrics with Assertible






Proudly trusted by these great companies

Proudly trusted by these great companies

Swap Tech uses Assertible for post deployment API testing
Drift uses Assertible test test their APIs
Safewill uses Assertible to ensure the uptime of their public web services
Unbxd uses Assertible for monitoring their public web services
Glassix uses Assertible to validate their API responses
SimplyRETS uses Assertible test test and monitor their public API
Identibyte uses Assertible to monitor API uptime
Grove Technologies uses Assertible validate their JSON API responses
Pechakucha uses Assertible for web service uptime monitoring
Tech Creations uses to validate end-user workflows on their API.
Tech Creations uses to validate end-user workflows on their API.
Tapa.cc uses Assertible to get notified of API downtime
MyWheels uses Assertible to integrate API testing with GitHub