Hi all,
I think we should make the difference between memory and persisted JSON representations.
From what I know, only a JSON document representation will be persisted,
And map representations are only memory ones.
Just use the map (or xquery starting v9) format option at parsing time.
Best regards,
Fabrice
De : basex-talk-bounces@mailman.uni-konstanz.de [mailto:basex-talk-bounces@mailman.uni-konstanz.de]
De la part de m.vankeulen@utwente.nl
Envoyé : mercredi 15 novembre 2017 08:30
À : wray.johnson@gmail.com; christian.gruen@gmail.com
Cc : basex-talk@mailman.uni-konstanz.de
Objet : Re: [basex-talk] Update/Delete JSON
Christian,
The JSON Module suggests that JSON objects are represented as XML-documents with a certain structure, not as immutable maps. Is there support in BaseX for json:parse and json:serialize
for parsing JSON in textual form into immutable maps and back to JSON in textual form?
Kind regards,
Maurice van Keulen
--
----------------------------------------------------------------------
Dr.Ir. M. van Keulen - Associate Professor, Data Management Technology
Univ. of Twente, Dept of EEMCS, POBox 217, 7500 AE Enschede, Netherlands
Email:
m.vankeulen@utwente.nl, Phone: +31 534893688,
Fax: +31 534892927
Room: ZI 2013, WWW:
http://www.cs.utwente.nl/~keulen
On 13 Nov 2017 23:31 +0100, Christian Grün <christian.gruen@gmail.com>,
wrote:
In XQuery, JSON objects are represented as immutable maps. Please
check out the documentations to learn how these data structures can be
changed [1,2].
_______________
[1] http://docs.basex.org/wiki/Map_Module
[2] https://www.w3.org/TR/xpath-functions-31/#maps-and-arrays
On Sun, Nov 12, 2017 at 3:42 AM, E. Wray Johnson <wray.johnson@gmail.com>
wrote:
What is the best way to update JSON objects (only some object values) by unique id?
What is the best way to delete JSON objects by unique id?
Wray Johnson
(m) 704-293-9008