4 ms·
Looking at the source[1] it stands at 94 lines. There's also no example of field extraction in the readme even though it's mentioned that there is an example be
by anonfunction 11y ago
Looking at the source[1] it stands at 94 lines. There's also no example of field extraction in the readme even though it's mentioned that there is an example below in the features section.
[1] https://github.com/izabera/j/blob/master/j https://github.com/izabera/j/blob/master/j
- izabera 11y agothe parser is 20 lines. then there's a function named print, then there's a for loop that extracts the fields. the last two lines of the readme are the example you're looking for: $ ./j 'obj->"foo"' 'arr->1' 'obj->"baz"' <<< '{"foo":["bar",{"baz":"bat"}]}' "bat"
- anonfunction 11y agoThanks for clarifying both here as a reply and in the README[1] itself. [1] https://github.com/izabera/j/commit/24e0c49e38c63c4f96f017252a60a811fc91e9ea https://github.com/izabera/j/commit/24e0c49e38c63c4f96f01725...