json
json copied to clipboard
A "json" command for massaging JSON on your Unix command line.
Hello! This is a simple change specifying your package's license in package.json according to the license info you provide in readme. This makes it easier to automate license checks.
``` $ cat foo.json ["foo"] ["bar"] $ json -f foo.json -g [ "foo", "bar" ] $ cat boom.json ["foo"] ["boom]["] ["bar"] $ json -f boom.json -g json: error: input is...
JSON assumes periods indicate an inner context. That's not always true. See issue [159](https://github.com/trentm/json/issues/159). This adds an example to the docs based on the suggested solution. --- I specifically found...
As I understand, I can replace value via this command: `json -I -f test.json -e "this.name='andrew'"` But how can I replace a value for this key -> last.name? I mean...
I have a file, assets.json: ``` { "window":{ "bottom":"_" } } ``` I tried to cat the file while piping it with JSON: `cat assets.json | json window bottom` which...
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8. Changelog Sourced from minimist's changelog. v1.2.8 - 2023-02-09 Merged [Fix] Fix long option followed by single dash [#17](https://github.com/minimistjs/minimist/issues/17) [Tests] Remove duplicate test [#12](https://github.com/minimistjs/minimist/issues/12) [Fix]...
Bumps [json5](https://github.com/json5/json5) from 2.2.0 to 2.2.3. Release notes Sourced from json5's releases. v2.2.3 Fix: [email protected] is now the 'latest' release according to npm instead of v1.0.2. (#299) v2.2.2 Fix: Properties...
Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3. Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] utils.merge: avoid a crash with a null target and a truthy...
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2. Commits 699c459 3.1.2 2f2b5ff fix: trim pattern 25d7c0d 3.1.1 55dda29 fix: treat nocase:true as always having magic 5e1fb8d 3.1.0 f8145c5 Add 'allowWindowsEscape' option 570e8b1...
this cmd fails ``` json -I -f dist/package.json -e this.scripts.start='npm pack' ``` with this error `json: error: lookups cannot be specified with in-place editing (-I/--in-place),` to make it works just...