Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bahamas10/node-makejson

Make JSON from the command line
https://github.com/bahamas10/node-makejson

Last synced: about 2 months ago
JSON representation

Make JSON from the command line

Awesome Lists containing this project

README

        

makejson
=========

Make JSON from the command line

Installation
------------

[sudo] npm install -g makejson

Usage
-----

$ makejson string foo bar baz

``` json
"foo bar baz"
```

$ makejson array foo bar baz

``` json
[
"foo",
"bar",
"baz"
]
```

$ makejson object foo=foo bar=bar baz=baz

``` json
{
"foo": "foo",
"bar": "bar",
"baz": "baz"
}
```

$ makejson object foo=false bar=true baz=null string="something here" a.b.c.d=100 a.b.c.e=something

``` json
{
"foo": false,
"bar": true,
"baz": null,
"string": "something here",
"a": {
"b": {
"c": {
"d": 100,
"e": "something"
}
}
}
}
```

License
-------

MIT