[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: The perils of using the @ symbol in JSON key name ...mappi

  • From: Ghislain Fourny <g@28.io>
  • To: Hans-Juergen Rennau <hrennau@yahoo.de>
  • Date: Tue, 18 Aug 2015 08:42:05 +0200

Re:  The perils of using the @ symbol in JSON key name ...mappi
Hi Hans-Jürgen,

> Concerning the "cost" of transformation one should also remember the fact
> that the program works with an internal representation anyhow, not the
> document text. So one must take care not to confuse the mental
> transformation ("This is JSON, so to use it as XML I have to transform it,
> haven't I?") with any actual one - there is none, there is only a parsing of
> text into internal representation and a serialization of internal
> representation into text. So if the input is JSON text, treating it as XML
> only involves an *alternative* parsing and an *alternative* serialization,
> not any additional transformation.

You are making a very valid point here. The conversion can of course
be optimized to a direct "cross-parsing" to the desired memory representation.
Usually, the memory representation is supported by a data model such as the XDM
for XML.

However, this push-down functionality relies on the querying engine,
meaning that
one needs to find one that does so and with the required JSON-to-XML
mapping, or needs
to be able to tamper with the source code (but there are a few open-source
implementations out there).

I think another argument here for sticking to JSON data models and
querying languages
is to keep the technology stack lean and avoid gluing one's way
through impedance
mismatches as much as possible.

Kind regards,
Ghislain


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.