0.1.2 • Published 9 years ago

jsonit v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago