why not implement as wrapper? #813
callowaylc
started this conversation in
General
Replies: 1 comment
-
Yeah that's definetly a valid approach, there are two reasons why you may not want to do that: a) YAML is a super set of JSON - e.g. you can have multiple documents in a single file, there are comments, anchors and other things JSON doesn't have. b) Depending on where you are processing the yaml - you may not want the overhead of installing python |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just curious, but if the aim is to provide a "jq like" tool, that "doesn't yet support everything jq does", why not just convert between json and yaml and pass arguments directly to jq?
Achieves the same thing without the awful (not your code but text processing in general); not trying to be a dick, but have been curious about this one for awhile.
python one liner references
https://gist.github.com/jaytaylor/f11428514269101049a225f20aea802f
https://gist.github.com/mboersma/1329671
Beta Was this translation helpful? Give feedback.
All reactions