fly-json-odm is the ODM library to handle JSON on the fly like
NOSQL does. You are able to make manipulation of JSON like ORM. For example is to do
Install using NPM
$ npm install fly-json-odm
Or simply use in Browser with CDN
<!-- Always get the latest version --><!-- Not recommended for production sites! --><!-- Get minor updates and patch fixes within a major version --><!-- Get patch fixes within a minor version --><!-- Get a specific version --><!-- Recommended for production sites! -->
const FlyJson = ; // in browser doesn't need this linevar nosql = ;// example data jsonvar data =user_id:1name:'budi'age:10user_id:5name:'wawan'age:20user_id:3name:'tono'age:30;// Synchronousvar result = nosql;console;// Asynchronousnosql;
- Structure Data Table JSON must be an
Arraywhich is contains
Objectlike example above.
fly-json-odmis synchronous as default.
Documentation is available in our Wiki.
If you want to play around with unit test.
$ npm test