Replies: 6 comments 1 reply
-
Just so this isn't lost from view, I'm re-posting my objections to JSONPath in its current form:
|
Beta Was this translation helpful? Give feedback.
-
Based on some initial thoughts and a conversation in the SIG meeting today, I actually don't think JSONPath or JMESPath, in their current forms, are going to be viable. See here: #8 |
Beta Was this translation helpful? Give feedback.
-
Designing our own query language, (ie: JSON Pointer Query)In the interest of designing something with exacting goals that match the Overlay spec, we put together a rough design of our own query language, provisionally called JSON Pointer Query, and you can find the draft over here. Note that this is very similar to JSON Path, particularly the IETF draft. So it's worth while to talk to those folks instead of completely redesigning the wheel. But there are some differences in this query lang that are still fun! |
Beta Was this translation helpful? Give feedback.
-
Using JSON Pointer as the "query" language for the alpha release of OverlaysWhile JSON Pointer is not a query language, it can be used to identify locations within a JSON-like document and could be a suitable enough for some use cases (i18n comes to mind). It is also well specified and well implemented. It large downside is that you cannot "future proof" your query, ie: you have to know all the locations you'd like to change/update/delete ahead of time. |
Beta Was this translation helpful? Give feedback.
-
For what it's worth, the spec authorship effort for JSON Path has decided that this is not the direction going forward due to lack of interoperability. |
Beta Was this translation helpful? Give feedback.
-
More recent internet drafts are quite different from the blog post. See https://datatracker.ietf.org/wg/jsonpath/documents/ for the latest draft. |
Beta Was this translation helpful? Give feedback.
-
Moving this Conversation from Spec Repo
I wanted to showcase the conversation and thinking that has already occurred around the usage of JSONPath and / or JMESPath as part of the overlays specification. I will pull highlights from the TDC conversation a couple weeks back, but if anyone wanted to share why we are consider one over the other, as well as possibly allowing for both i have several API providers and API service providers interested in learning from the conversation. Thanks everyone for helping me grow the discussion here.
Beta Was this translation helpful? Give feedback.
All reactions