JMESPath – A query language for JSON
101–110 of 131 posts
Re: JMESPath – A query language for JSON
#102Earlier quoted context omitted.
> * Keep that schema file updated by hand every time something like Sudan breaking in two happens (no). There is a lot of use for libraries dealing with time and dates. When you want to cover all cases, at some point you get to the situation when you have to allow variable number of seconds in a minute - not always 60, but sometimes 59 or 61, or may be even different numbers. And you don't know in advance - for arbit…
Ideally, use a library that intelligently parses dates as part of a turing complete validator.
Re: JMESPath – A query language for JSON
#103The reinvention of XML in JSON is almost complete - JMESPath vs XPath, JSON Schema vs XML Schema etc. If you need semi structured data to that level, consider using XML instead - you can validate it, there's plenty of tools, it's very stable and mature etc
(Fair discloure: I'm a jq maintainer.)
Re: JMESPath – A query language for JSON
#104Besides's this projects cli, jp ( https://github.com/jmespath/jp ), I see jl ( https://github.com/chrisdone/jl ) and jq ( https://github.com/stedolan/jq/ ) in the comments. I wonder if anyone has had experience with all three (or even just one) and can comment on their experiences?
I've used jq and jp/JMESPATH quite a bit. I love jq, and use it more often than JMESPATH. However, recently I've noticed that I arrive at "the solution" I need more quickly with JMESPATH. In retrospect, JMESPATH's documentation and examples have been more useful for me than jq's (docs/examples).
Re: JMESPath – A query language for JSON
#105Besides's this projects cli, jp ( https://github.com/jmespath/jp ), I see jl ( https://github.com/chrisdone/jl ) and jq ( https://github.com/stedolan/jq/ ) in the comments. I wonder if anyone has had experience with all three (or even just one) and can comment on their experiences?
jq is by far the best developed and has the most intuitive syntax, but it doesn't have a formal spec for its language. I have been maintaining https://github.com/kislyuk/yq , which wraps jq with a transcoder for YAML and XML.
Re: JMESPath – A query language for JSON
#106Re: JMESPath – A query language for JSON
#107The reinvention of XML in JSON is almost complete - JMESPath vs XPath, JSON Schema vs XML Schema etc. If you need semi structured data to that level, consider using XML instead - you can validate it, there's plenty of tools, it's very stable and mature etc
Re: JMESPath – A query language for JSON
#108The reinvention of XML in JSON is almost complete - JMESPath vs XPath, JSON Schema vs XML Schema etc. If you need semi structured data to that level, consider using XML instead - you can validate it, there's plenty of tools, it's very stable and mature etc
Hm. One reason why I prefer Json to XML (and I actually like XML) is, that JSON is simpler. The fact that XML has schema definitions out of the box, and that these schema definitions can reference other definitions would lead to more complex parsers that can contain more bugs and vulnerabilities.
Partially yes, but it's also at least in part due to a "fuck all this language theory crap, lets just standardize something already" approach.
Re: JMESPath – A query language for JSON
#109Earlier quoted context omitted.
We still need XSLT for JSON to complete the circle. Though it seems like XSLT should support JSON: https://www.w3.org/TR/xslt-30/#json
XML Stylesheet Transformation, the language to describe transformations of XML documents into another XML documents. Isn't jq or JMESPath an example of such a language for transformations?
Re: JMESPath – A query language for JSON
#110Earlier quoted context omitted.
jq is by far the best developed and has the most intuitive syntax, but it doesn't have a formal spec for its language. I have been maintaining https://github.com/kislyuk/yq , which wraps jq with a transcoder for YAML and XML.
Is there demand for a formal spec for jq? Would that lead to additional implementations? Serious question.