I usually use node's repl to explore json:

> obj = require("./myfile")
> obj["k3"]
> obj["k3"] = "foo"
etc...


On Tue, May 6, 2014 at 7:27 AM, // ravi <[email protected]> wrote:

>
> Anyone know if there exists a tool that provides a REPL-like interface
> (i.e., interactive CLI) to JSON? Something using which I can do:
>
> $ jsonrepl ./myfile.json
> json> show
> {
>     “k1” : “val1”,
>     “k2” : true,
>     “k3” : { “k31” : “val31”, “k32” : “val32” }
> }
> json> cd “k3”
> json> show
> {
>     “k31” : “val31”,
>     “k32” : “val32”
> }
> json> set k31 = val31new
> json> cd ..
> json> print k1.k31
> “val31new”
>
>
> … etc …
>
> I want to check before I write one.
>
> —ravi
>
>
>  --
> Job board: http://jobs.nodejs.org/
> New group rules:
> https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nodejs/1F244BC8-1416-4219-9E1E-1FBE9F4498E6%40g8o.net<https://groups.google.com/d/msgid/nodejs/1F244BC8-1416-4219-9E1E-1FBE9F4498E6%40g8o.net?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAHPPJS7Mxv%2BgMEd4-dcNpKYHe_kQn1rn04Cob%2BLNz%3DROiYRpSw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to