On 12/22/18 8:26 PM, Ben Pracht wrote:
Second, I read about Jsoniq and was intrigued by it. It seemed like it supported JSON without requiring an XML intermediary. Having good JSON support would really help with frameworks like Angular or React.
Funny, I was thinking about posting the same thing last week, but at the end I didn't. I'm working with some huge amounts of JSON data lately and I'm using BaseX to parse the data, understand it, then export it to HTML for others to see. XQuery 3.1 has support for JSON via the parse-json function, but it converts it to maps so if you want to read a specific "node" you need to know the exact path for it, and it can be hard to request that. The alternative is to use the basex JSON module which converts it to XML, then use XPATH to read what you need. I'm not really sure what's the best solution is for something like this, but there are some xquery engines / databases who use jsoniq. e.g
1) VXQuery -> https://cwiki.apache.org/confluence/display/VXQUERY/JSONiq
2) Zorba -> http://try.zorba.io/
3) Sparksoniq -> http://sparksoniq.org/
I really love Basex overall though and think it's underrated for what it can do.
I agree! It's a tool that is useful for many things and I recommend it every time.
Merry Christmas to everyone !
Regards, George.