shake, with fries

by Zach Carter

Orderly.js Web Version

I've commited a minified, dependency-free version* of orderly.js for use on the web. It introduces an orderly object, with parse and compile methods.

Usage is straight forward:

<script src="orderly.js"></script>
<script>
    var orderlySource = "array {};";

    var jsonSchemaSource = orderly.compile(orderlySource);

    var jsonSchemaObject = orderly.parse(orderlySource);
</script>

Edit: View the online demo here.

*Excpet for a JSON stringifier, to account for browsers that don't include native JSON yet.

javascript json jsonschema orderly | December 31, 2009 at 10:23 AM

Short url: http://zaa.ch/2l

blog comments powered by Disqus