How to export or query JSON as an array?

Monday, 17 February 2020 · 2 messages
T
thufir17 Feb 2020 20:09 #
Using Java, I can add JSON easily enough. But how can I get that data back as a JSONArray, or even just a List of JSONObject? https://stackoverflow.com/q/60268157/262852 which is the same question, of course. thanks, Thufir
T
thufir17 Feb 2020 20:25 #
This is the data I'm trying to pull from the database:
[
   {
     "0":"z10",
     "1":"y9",
     "2":"x7",
     "3":"atrib6",
     "name":"alice"
   },
   {
     "0":"home5",
     "1":"cell4",
     "name":"sue"
   },
   {
     "0":"phone3",
     "1":"phone2",
     "2":"phone1",
     "name":"joe"
   },
   {
     "name":"people"
   }
]
which is, obviously, JSON rather than XML. So use the export functionality? But, how?
Quoted text · thufir · 13 lines
On 2020-02-17 10:09 a.m., thufir wrote: > Using Java, I can add JSON easily enough. But how can I get that data > back as a JSONArray, or even just a List of JSONObject? > > https://stackoverflow.com/q/60268157/262852 > > which is the same question, of course. > > > > thanks, > > Thufir

⚡Generated with XQuery