Need help with jsonary?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

122 Stars 15 Forks MIT License 828 Commits 39 Opened issues


Quickly assemble clients for JSON-based APIs (powered by JSON Schema)

Services available


Need anything else?

Contributors list


Jsonary is a wrapper for JSON data, that deals with JSON Schema. Its goal is to help quickly assemble clients for JSON APIs.

It is written in JavaScript. Currently, it is being developed and tested for in-browser use. However, Node.js support is planned, with the goal of being able to write a single client that can be used either in-browser using AJAX, or as an HTML-only interface for non-JS browsers.

The primary goal of this library is not validation of data, but rather to simplify the fetching, handling and rendering of data. Its focus is correctly assigning JSON Schema to data, which can then be used to select and inform user-interfaces.

Using schemas

The core of Jsonary deals with JSON Schema (including hyper-schema). For example, here we create a Jsonary data wrapper, and apply a schema to it:

var data = Jsonary.create({
    "title": "Example data"
var schema = Jsonary.createSchema({
    "title": "Example schema",
    "type": "object",
    "properties": {
        "title": {
            "type": "string",
            "minLength": 1
    "required": ["title"]

The data can be inspected or manipulated, like so:

alert('title').value());'message').setValue("Hello, world!");

The schema constraints can be inspected, like so: ```javascript alert(data.schemas().length); // 1 alert(data.schemas().requiredProperties()); // ["title"]

var title ="title"); alert(title.schemas().minLength()); // 1 ```

More complicated behaviour (such as selecting schemas from

, etc) is also handled automatically. Just change the data, and the schemas change with it.

Using hyper-schemas

Hyper-schemas can define links on the data, with the URLs parameterised from the data itself:

var data = Jsonary.create({
    "id": 125,
    "authorId": 25,
    "title": "Example data"
var schema = Jsonary.createSchema({
    "title": "Example hyper-schema",
    "links": [
            "rel": "self":,
            "href": "{id}"
            "rel": "author",
            "href": "{authorId}"

Jsonary handles these, and the links can be inspected: ```javascript alert(data.links().length); // 2

var authorLink = data.links('author')[0]; alert(authorLink.href); // ```

Many more properties of links can be inspected

Rendering clients

Jsonary comes bundled with a rendering system that bases its interface on the schemas that a data object has applied to it.


Main site

More information can be found at:, although this is now slightly out-of-date.

There is a quick feature tour, walkthroughs for creating a generic browser or creating a Facebook client (incomplete).

There is also a demo of how the default editable interface deals with various JSON Schema validation keywords here.


Jsonary is released under an MIT License.

The files in the directory

may have separate licenses. To keep the licensing for Jsonary clean, they are not included in any of the bundles.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.