makejson
v0.0.1
Published
Make JSON from the command line
Downloads
3
Readme
makejson
Make JSON from the command line
Installation
[sudo] npm install -g makejson
Usage
$ makejson string foo bar baz
"foo bar baz"
$ makejson array foo bar baz
[
"foo",
"bar",
"baz"
]
$ makejson object foo=foo bar=bar baz=baz
{
"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
{
"foo": false,
"bar": true,
"baz": null,
"string": "something here",
"a": {
"b": {
"c": {
"d": 100,
"e": "something"
}
}
}
}
License
MIT