License : MIT

Current version: 1.0
Release date: 2014-06-29

Maven dependency:

<dependency>
<groupId>org.hawksoft</groupId>
<artifactId>json-schema</artifactId>
<version>1.0</version>
</dependency>

json-schema allows you to validate a JSON data document against a given JSON schema.

The JSON schema document follows the exact same structure as the data document it's validating. However, the schema attribute values are actually validation rules.

For example, the following JSON data attribute:
{
...
"fruit" : "banana",
...
}

could be validated using the following schema attribute (rules):

{
...
"fruit" : "type=enum;values=apple,orange,banana,pear",
...
}

Whereas { "fruit" : "banana" } would pass validation, { "fruit" : "strawberry" } would not, since strawberry is not one of the allowed enumeration values for 'fruit'.

Project Activity

See All Activity >

Follow JSON Schema Validation

JSON Schema Validation Web Site

Other Useful Business Software
AI-powered service management for IT and enterprise teams Icon
AI-powered service management for IT and enterprise teams

Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity. Maximize operational efficiency with refreshingly simple, AI-powered Freshservice.
Try it Free

Additional Project Details

Registered

2014-01-14