jsonit

0.1.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i jsonit

Weekly Downloads

5

Version

0.1.2

License

MIT

Last publish

Collaborators

  • yieme