2.0.3 • Published 4 years ago

json-processing v2.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

JP: JSON Processing Tool

Build Status via Travis CI NPM version Dependency Status via David DM

JP combines both yajson-stream and RxJS to provide a powerful command line tool for filtering and transforming json streams.

Example

Take the following ndjson as an example:

{ "num": 1 }
{ "num": 1 }
{ "num": 1 }

Then select all num and sum:

$ npm install -g json-processing
$ cat test.json | jp -l 'select(".num") |> reduce((a, b) => a + b, 0)' -m json
3

The -l parameter defines the filtering and transformation sequence. It must start with a call to select(path: string), which takes a yajson-stream path as parameter. The return is an Observable from RxJS.

Bugs and Feedback

For bugs, questions and discussions please use the Github Issues.

LICENSE

Code and documentation released under The MIT License (MIT).

2.0.3

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.7

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.5-beta2

6 years ago

1.2.5-beta1

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1-beta4

7 years ago

1.2.1-beta3

7 years ago

1.2.1-beta2

7 years ago

1.2.1-beta1

7 years ago

1.2.0

7 years ago

1.2.0-beta1

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

1.0.0-beta5

7 years ago

1.0.0-beta4

7 years ago

1.0.0-beta3

7 years ago

1.0.0-beta2

7 years ago

1.0.0-beta1

7 years ago

1.0.0-alpha8

7 years ago

1.0.0-alpha7

7 years ago

1.0.0-alpha6

7 years ago

1.0.0-alpha5

7 years ago

1.0.0-alpha4

7 years ago

1.0.0-alpha3

7 years ago

1.0.0-alpha2

7 years ago

1.0.0-alpha1

7 years ago

0.0.2

8 years ago

0.0.1

8 years ago