Divya
ca0a63f0ee
fix(jsontools): print JSON, not YAML, in pp_json with the ruby method ( #14263 )
...
* fix(jsontools): print JSON, not YAML, in `pp_json` with the ruby method
The ruby implementation of `pp_json` converted the parsed input to YAML
(`to_yaml`), while the node and python3 implementations, and the README,
pretty-print JSON. Use `JSON.pretty_generate` with the same 4-space
indent as the other methods.
* test(jsontools): cover the ruby method
2026-11-22 10:16:39 -08:00
umutcagand
0650a25040
fix(jsontools): read Node.js input from stdin ( #14190 )
2026-10-19 17:21:44 -07:00
Carlo Sala
0818df057c
fix: use python3 for all python invocations ( #10832 )
2022-04-09 14:45:42 +02:00
Marc Cornellà
f793baf370
fix(jsontools): fix broken conditional in zsh 5.0.2 ( #10262 )
...
Fixes #10262
2021-10-05 11:59:09 +02:00
Eduardo Flores and Marc Cornellà
7ded6752fd
feat(jsontools): add tools to pretty print json-lines (ndjson) ( #10176 )
...
Co-authored-by: Marc Cornellà <hello@mcornella.com >
2021-09-22 09:19:11 +02:00
Marc Cornellà
b590939637
refactor(jsontools): move to functions, align is_json tool to return exit code
...
Also:
- Fix Python code in accordance with Python 3
- Use CGI module in Ruby to encode/decode strings
2021-09-22 09:19:11 +02:00
Marc Cornellà
f9d9d33ba4
refactor(jsontools): restructure and simplify logic
2021-09-22 09:19:11 +02:00
Marc Cornellà
1c98b9cc38
Remove current directory from sys.path in python invocations ( #8408 )
...
* Remove current directory from sys.path in python invocations
2019-11-21 03:29:16 +01:00
Bob Williams
400643ff5b
adding urldecode_json to compliment urlencode_json and updating readme.md; slight tweak to urlencode_json from previous commit
2014-03-27 10:34:54 -04:00
Bob Williams
0605d53fa7
adding urlencode_json and associated README.md details
2014-03-26 18:47:57 -04:00
Bob Williams
982b534ce8
adding the is_json tool and associated readme.md details
2014-03-25 16:20:25 -04:00
Bob Williams
64c3ce35e1
adding xargs -0 to node aliases
2014-03-24 14:24:00 -04:00
Bob Williams
f8890f5646
updated readme.md and using tab char for formatting with node
2014-03-24 14:09:57 -04:00
Bob Williams
8db3e6329d
bug fix for node pp_json version
2014-03-24 13:36:26 -04:00
Bob Williams
185cb6e373
adding support for node
2014-02-27 10:56:07 -05:00
Bob Williams
56babe6538
Adds command line aliases useful for dealing with JSON
2014-02-26 19:35:24 -05:00