{"_id":"json-command","_rev":"19-ee349db9b6331777fe7e7d3703e2f083","name":"json-command","description":"JSON command line processing toolkit.","dist-tags":{"latest":"0.0.14"},"versions":{"0.0.6":{"name":"json-command","version":"0.0.6","engines":["node >=0.2.0"],"description":"JSON command line processing toolkit.","author":{"name":"Zachary Poley","email":"zpoley@gmail.com","url":"http://zpoley.net"},"contributors":[{"name":"Isaac Schlueter","email":"i@izs.me","url":"http://blog.izs.me"}],"keywords":["json","command","shell"],"man":["./man/json-command.1"],"repository":{"type":"git","url":"git://github.com/zpoley/json-command.git"},"bin":{"json":"./bin/json.js"},"_id":"json-command@0.0.6","_engineSupported":true,"_npmVersion":"0.3.3","_nodeVersion":"v0.4.1","directories":{"lib":"./lib","bin":"./bin","man":"./man"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"67a80f116f79ae1cb0d36813def945490d601bd8","tarball":"https://registry.npmjs.org/json-command/-/json-command-0.0.6.tgz","integrity":"sha512-BcsWkg+nuOQgmsrtkNBd1CUKEPVnbdOne4/iP75GFOOc/hBnKX74d2YHhEcAisTN+P8Ml/Gx2rrCK6rvOWjuVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJMBnawrSjiGxpmCkGdFjy5+NJSXXNsECEdK6+DgwdVgIgZXJ58ZhnxJpo58tyKBjQuEh8N6FSxFhkeRkAWKxMR50="}]},"deprecated":"json-command has been renamed to json. all updates will be made to json. json-command will be removed in the future."},"0.0.14":{"name":"json-command","version":"0.0.14","license":"MIT","engines":["node >=0.4.0"],"description":"JSON command line processing toolkit.","author":{"name":"Zachary Poley","email":"zpoley@gmail.com","url":"http://zpoley.net"},"contributors":[{"name":"Isaac Schlueter","email":"i@izs.me","url":"http://blog.izs.me"},{"name":"Andrey Tarantsov","email":"andreyvit@gmail.com","url":"http://www.tarantsov.com/"},{"name":"Niek Schmoller","email":"niek.schmoller@helderberg.nl","url":"http://helderberg.nl"},{"name":"Ryunosuke SATO","url":"http://d.hatena.ne.jp/tricknotes/"},{"name":"Johan Sundström","url":"http://ecmanaut.blogspot.com/"}],"keywords":["json","command","shell"],"man":["./man/json.1"],"repository":{"type":"git","url":"git+https://github.com/zpoley/json-command.git"},"bin":{"json":"./bin/json.js"},"scripts":{"test":"node test/test.js"},"gitHead":"ebfa5c1dd236ed886eed107f93600b15c85134cc","bugs":{"url":"https://github.com/zpoley/json-command/issues"},"homepage":"https://github.com/zpoley/json-command#readme","_id":"json-command@0.0.14","_shasum":"819ade1995156b2a093ae02d352188f35d48b285","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"zpoley","email":"zpoley@gmail.com"},"dist":{"shasum":"819ade1995156b2a093ae02d352188f35d48b285","tarball":"https://registry.npmjs.org/json-command/-/json-command-0.0.14.tgz","integrity":"sha512-NYgNNPdw36KRvHBYsPvnk/OAp82x7N6EcrVJNKjDjKh6bu+LxQCvhlPe3rLkEOFjnoPVvX6Lk0bIH1w5aJWTww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEXYu5gGvF8xigTPpOL+66V1A23XevDrQyIPFYMIi89lAiEAxAQW6hgnrn7UXquXyWhvIlAqSCJPYkLGulvzUmvTt1w="}]},"maintainers":[{"name":"zpoley","email":"zpoley@gmail.com"}]}},"maintainers":[{"name":"zpoley","email":"zpoley@gmail.com"}],"author":{"name":"Zachary Poley","email":"zpoley@gmail.com","url":"http://zpoley.net"},"repository":{"type":"git","url":"git+https://github.com/zpoley/json-command.git"},"time":{"modified":"2022-06-19T06:12:48.604Z","created":"2010-12-22T15:09:29.535Z","0.0.4":"2010-12-22T15:09:29.535Z","0.0.5":"2010-12-22T15:09:29.535Z","0.0.6":"2011-02-21T08:16:42.669Z","0.0.14":"2015-11-21T04:54:18.120Z"},"readme":"# JSON Command\n\nJSON command line processing toolkit. \n\nno more writing code to inspect or transform JSON objects.\n\nthis npm module includes a json shell command. the json command processes standard \ninput and parses json objects. json currently handles a few different standard \ninput formats and provides a number of options tailored toward inspecting and \ntransforming the parsed json objects.\n\n## IMPORTANT\n\njson-command has been renamed to json in npm. all updates will be made to the json npm package.\n\nyou need node v0.4.0 or higher and npm to run this program.\n\n## Installation\n\n    npm install json\n\ninstalls json shell command.\n\n## Examples\n\nthe following examples parse json output from twitter http requests and output the \nrequested json fields.\n\nplease note that the last two examples require you to enter your username and password.\n\n    curl http://search.twitter.com/search.json?q=node.js\n\n    curl -s http://search.twitter.com/search.json?q=node.js | json\n\n    curl -s http://search.twitter.com/search.json?q=node.js | json -o results\n\n    curl -s http://search.twitter.com/search.json?q=node.js | json -o results from_user metadata\n\n    curl -s http://search.twitter.com/search.json?q=node.js | json -o results new_id=id\n\n    curl -s http://search.twitter.com/search.json?q=node.js | json -o results -C from_user from_user_id\n\n    curl -s http://stream.twitter.com/1/statuses/sample.json -uAnyTwitterUser:Password | json user.name user.id\n\n    curl -s http://stream.twitter.com/1/statuses/sample.json -uAnyTwitterUser:Password | json user.name user.id -c \"entities.user_mentions.length > 0\"\n\n## Synopsis\n\n    json [options] [fields]\n\n## Options\n\n    -h                    print help info and exit\n\n    -v (-V | --version)   print version number and exit\n\n    -u                    print ugly json output, each object on a single line\n\n    -d                    print debugging output including exception messages\n\n    -o object.path        specify the path to an array to be iterated on\n\n    new.key=old_key       move old_key to new.key in output object\n\n    -a                    input object is an array, process each element separately\n\n    -c \"js conditional\"   js conditional to be run in the context of each object that determines whether an object is printed\n\n    -C                    print the output fields as tab delimited columns in the order specified by fields\n\n    -e \"js expression\"    execute arbitrary js in the context of each object.\n\n    -i                    use node's util.inspect instead of JSON.stringify.\n\n    -H                    print headers, if they are supplied. Useful for output from curl -i.\n\n\n## Fields\n\nany number of fields can be specified to be printed from each json object.\nby default the structure of the original json object is maintained, however options\nlike -e and foo=bar allow for transforming object structure.\n\nto remove a particular key, assign it to undefined using the -e flag.\n\n## Standard Input Formats\n\n* line delimited json objects\n* back to back json objects. \n    e.g. { obj1 : body }{ obj2 : body }\n* file separated json objects. \n    e.g. cat files/* | json\n* when using -a, a single JSON array\n\n## Order of operations\n\n1. objects are parsed from stdin\n\n2. any non-existing requested keys are instantiated\n\n3. key transforms are applied to the object\n\n4. expressions are run against the object\n\n5. conditionals are checked against the object. the object is discarded if conditionals do not pass\n\n6. the requested keys are pulled from the object and output\n\n## Limitations\n\n* all input is handled through standard in\n* the current version is not particularly slow, but is NOT optimized for speed in any way\n\n## Documentation\n\nthe npm package includes a man page that can be accessed using:\n\n    man json\n\n## Known Issues\n\nthis is alpha quality code, so use at your own risk.\n\n## Thanks\n\nthis project respectfully uses code from and thanks the authors of:\n\n* [node](http://github.com/ry/node) \n* [npm](http://npmjs.org/) \n\n\n\n\n","homepage":"https://github.com/zpoley/json-command#readme","keywords":["json","command","shell"],"contributors":[{"name":"Isaac Schlueter","email":"i@izs.me","url":"http://blog.izs.me"},{"name":"Andrey Tarantsov","email":"andreyvit@gmail.com","url":"http://www.tarantsov.com/"},{"name":"Niek Schmoller","email":"niek.schmoller@helderberg.nl","url":"http://helderberg.nl"},{"name":"Ryunosuke SATO","url":"http://d.hatena.ne.jp/tricknotes/"},{"name":"Johan Sundström","url":"http://ecmanaut.blogspot.com/"}],"bugs":{"url":"https://github.com/zpoley/json-command/issues"},"license":"MIT","readmeFilename":"README.md"}