Aside from XQuery and BaseX converting JSON, because JSON is not just objects, I think there could be a problem with the concept of converting JSON to maps, also. For example, these JSON documents aren’t map-like:
- true
- ["a", "a", "a", "x"]
True! In the current version of BaseX, the option for converting JSON to XQuery item is still called 'map'. This is confusing, so (with BaseX 9.0) we changed it to 'xquery'.