Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/bahamas10/node-makejson
- Owner: bahamas10
- Created: 2014-03-17T06:27:56.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-18T19:03:43.000Z (almost 11 years ago)
- Last Synced: 2024-05-08T20:01:04.462Z (8 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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