My favorites | Sign in
Project Logo
             
Search
for
Updated Feb 27, 2008 by da...@alkaline-solutions.com
JSONBlueprint  
JSON Schema Proposal and implementation

Introduction

JSON Blueprints is the code-name for a schema format proposal, to allow specifying and validating the structure of JSON documents.

This proposal is based on the work already done as part of JSONSchema. The 'Blueprint' name was chosen to distinguish my work from existing work in the field.

Details

JSON Blueprint contains several predefined core types which would be difficult or impossible to define otherwise. These core types define the most liberal form of each of the JSON data and structural types. In addition, null and undefined are considered core types.

From these, a hierarchy of sub-types are created, by defining restrictions on either the core types or other sub-types. These are referred to as 'restriction types'. An example would be limiting a JSON string data value to the format of legal email addresses.

A union type is a list of valid core, restriction, or other union types. For ease of processing, union types cannot be further restricted, beyond the restrictions on their constituent types.


Sign in to add a comment
Hosted by Google Code