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
Build Securely on AWS with Proven Frameworks Icon
Build Securely on AWS with Proven Frameworks

Lay a foundation for success with Tested Reference Architectures developed by Fortinet’s experts. Learn more in this white paper.

Moving to the cloud brings new challenges. How can you manage a larger attack surface while ensuring great network performance? Turn to Fortinet’s Tested Reference Architectures, blueprints for designing and securing cloud environments built by cybersecurity experts. Learn more and explore use cases in this white paper.
Download Now

Additional Project Details

Registered

2014-01-14