Query JSON with XPath #137
Replies: 3 comments 3 replies
-
As a user, I don't mind waiting a little more. |
Beta Was this translation helpful? Give feedback.
-
As far as I could read here @marklogic follows this strategy querying JSON with XPath. I still need to read this better. Because we are suportting YARRRML in the short term I think there would be no problem with this @dgarijo. |
Beta Was this translation helpful? Give feedback.
-
Another possibility is to try this library besok/jsonpath-rust#29 |
Beta Was this translation helpful? Give feedback.
-
Last time I checked I could not find an implementation of JSONPath in python that was comprehensive and actively maintained. However, for XPath there are a couple of very good implementations.
The jsonpath library currently used by Morph-KGC has limitations and some bugs (e.g., #132). I though of internally converting JSON to XML (e.g., using json2xml) and using XPath to query JSON.
Some advantages:
Some disadvantages:
@dgarijo @ocorcho @anaigmo what do you think? Do you see any other drawback? I am not that familiar with hierarchical data. A possible solution in the middle is to allow both for JSON, JSONPath and XPath, and add a configuration option to select which one to use.
Beta Was this translation helpful? Give feedback.
All reactions