jsonit
v0.1.2
Published
Simplified JSONIC which is a JSON parser that isn't strict
Downloads
26
Readme
JsonIt
Simplified JSONIC which is a JSON parser that isn't strict
Installation
This module is installed via npm:
npm i jsonit --save
For Command Line Interface:
npm i jsonit -g
Examples
var jsonit = require('jsonit')
jsonit('ok') // { "op": "ok" }
jsonit('ok', 'you') // { "you": "ok" }
jsonit('say,hello:world') // { "op": "say", "hello": "world" }
Change the default type of the inital assigned parameter
jsonit('ok', 'OneTime', 'DefaultType') // { "OneTime": "ok" }
jsonit('ok') // { "DefaultType": "ok" }
jsonit('ok', null, 'NewType') // { "NewType": "ok" }
Command Line Interface Examples
jsonit --help
Simplified JSONIC which is a JSON parser that isn't strict - v0.1.0
Usage: jsonit JsonItString [type] [--pretty]
Examples:
jsonit ok
{ "op": "ok" }
jsonit hello say
{ "say": "hello" }
jsonit say,hello:world --pretty
{
"op": "say",
"hello": "world"
}
Rights
Copyright (C) 2015 by Yieme, License: MIT