Permalink
Browse files

Rename jpath to jsonpath because jpath is something different. Docume…

…nt some additional post-1.000 features.
  • Loading branch information...
1 parent 3c84b44 commit d3e1ad55afc73b137d4336dc2299a0cc2ebd35b8 @rcaputo committed May 21, 2011
Showing with 27 additions and 19 deletions.
  1. +8 −8 README
  2. +11 −3 TODO.otl
  3. 0 bin/{jpath → jsonpath}
  4. +1 −1 eg/README
  5. +7 −7 lib/App/PipeFilter.pm
View
16 README
@@ -26,11 +26,11 @@ DESCRIPTION
{"network":"magnet","channel":"#poe"}
{"network":"magnet","channel":"#reflex"}
- The jpath filter supports more complex expressions using JSON::Path’s
- variant of JSONPath.
+ The jsonpath filter supports more complex expressions using
+ JSON::Path’s variant of JSONPath.
% curl −s 'http://api.duckduckgo.com/?q=poe&o=json' |
- jpath −o '$..Topics.*.FirstURL' −o '$..Topics.*.Text' |
+ jsonpath −o '$..Topics.*.FirstURL' −o '$..Topics.*.Text' |
grep −i perl |
jmap −i col0 −o url −i col1 −o title |
json2yaml
@@ -41,8 +41,8 @@ DESCRIPTION
DESIGN GOAL
Follow the UNIX convention of one record per line of text. This
ensures App::PipeFilter tools are compatible with many standard UNIX
- filters. In the examples above, jcut and jpath output is piped through
- sort(1), uniq(1) and grep(1).
+ filters. In the examples above, jcut and jsonpath output is piped
+ through sort(1), uniq(1) and grep(1).
PRO TIPS
JSON isn’t particularly concise, so put grep(1) and other filters that
@@ -53,12 +53,12 @@ SEE ALSO
jmap − Rename one or more named fields from JSON input.
- jpath − Like jcut, but fields are described using JSON::Path’s variant
- of JSONPath.
-
json2yaml − Convert JSON input records to YAML output records. Some
people may find YAML output to be more readable.
+ jsonpath − Like jcut, but fields are described using JSON::Path’s
+ variant of JSONPath.
+
jsort − Sort JSON input on one or more key fields.
myswl2json − Convert mysql(1) batch output (−B) into JSON records.
View
@@ -1,9 +1,17 @@
-[_] 40% Requirements for CPAN 1.000 release
+[_] 50% Requirements for CPAN 1.000 release
[X] 100% Support multiline JSON input using JSON::XS's incremental parser.
[X] 100% Read input in large chunks, parsing incrementally.
+ [X] 100% Rename jpath to jsonpath.
+ Open the jpath name for JPath, which is something different.
+ http://bluelinecity.com/software/jpath/
[_] 0% Document the libraries.
[_] 0% Document the executables.
[_] 0% Test dzil.ini.
-[X] 100% Additional features
+[_] 50% Additional features
[X] 100% Allow -o to be JSON::Path descriptions.
- Implemented jpath that acts like jcut but using JSONPath.
+ Implemented jsonpath that acts like jcut but using JSONPath.
+ http://goessner.net/articles/JsonPath/
+ [_] 0% A jcut implementation using JSON:Select.
+ [_] 0% Find or write a Perl implementation or bindings for JSON::Select.
+ http://jsonselect.org/
+ [_] 0% Wrap a jsonselect app around it.
File renamed without changes.
View
@@ -12,7 +12,7 @@ curl -s http://feeds.delicious.com/v2/json/urlinfo/7b6cdc20ad985d4ddc547cd18a9e3
*** Filtering Web Data with JSONPath
% curl -s 'http://api.duckduckgo.com/?q=poe&o=json' |
-jpath -o '$..Topics.*.FirstURL' -o '$..Topics.*.Text' |
+jsonpath -o '$..Topics.*.FirstURL' -o '$..Topics.*.Text' |
jmap -i col0 -o url -i col1 -o title |
grep -i perl |
json2yaml
View
@@ -24,11 +24,11 @@ objects rather than whitespace separated fields.
{"network":"magnet","channel":"#poe"}
{"network":"magnet","channel":"#reflex"}
-The jpath filter supports more complex expressions using JSON::Path's
-variant of JSONPath.
+The jsonpath filter supports more complex expressions using
+JSON::Path's variant of JSONPath.
% curl -s 'http://api.duckduckgo.com/?q=poe&o=json' |
- jpath -o '$..Topics.*.FirstURL' -o '$..Topics.*.Text' |
+ jsonpath -o '$..Topics.*.FirstURL' -o '$..Topics.*.Text' |
grep -i perl |
jmap -i col0 -o url -i col1 -o title |
json2yaml
@@ -40,7 +40,7 @@ variant of JSONPath.
Follow the UNIX convention of one record per line of text. This
ensures App::PipeFilter tools are compatible with many standard UNIX
-filters. In the examples above, jcut and jpath output is piped
+filters. In the examples above, jcut and jsonpath output is piped
through sort(1), uniq(1) and grep(1).
=head1 PRO TIPS
@@ -54,12 +54,12 @@ jcut - Extract one or more named fields from JSON input.
jmap - Rename one or more named fields from JSON input.
-jpath - Like jcut, but fields are described using JSON::Path's
-variant of JSONPath.
-
json2yaml - Convert JSON input records to YAML output records. Some
people may find YAML output to be more readable.
+jsonpath - Like jcut, but fields are described using JSON::Path's
+variant of JSONPath.
+
jsort - Sort JSON input on one or more key fields.
myswl2json - Convert mysql(1) batch output (-B) into JSON records.

0 comments on commit d3e1ad5

Please sign in to comment.