[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: ten years later, time to repeat it?
The mapping used by JsonReaderWriterFactory is described here: http://msdn2.microsoft.com/en-us/library/bb924435.aspx It looks like it can't map arbitrary JSON to XML since it doesn't seem to handle map keys that aren't valid NCNames. If it does handle keys like that then it won't be a 1-1 mapping. Other than that it looks really quite similar to the mapping I'm using. John Philip Fearon wrote: > I haven't seen any mention yet of the JSON/XML capabilities of > Microsoft.NET 3.5, especially the JsonReaderWriterFactory Class. > > Has anyone tried this out? I'm tempted to try out a small project with > this myself, but would be interested in any views on this first. > > Phil Fearon > http://www.sketchpath.com > > On Thu, Feb 14, 2008 at 5:35 PM, John Snelson <john.snelson@o...> wrote: >> For anyone who's interested, I've just written up my method of mapping >> JSON to XML here: >> >> http://snelson.org.uk/archives/2008/02/parsing_json_in.php >> >> The mapping is fully reversible and can generically convert any (RFC >> conformant) JSON. >> >> John >> >> Michael Kay wrote: >>> I was actually looking for a generic mapping that would yield an XML >>> representation of any JSON document. A reversible mapping would be a bonus. >>> >>> But of course other people may have subtly different requirements. And it >>> looks as if that JSON may be one of those slippery specs (like CSV?) that >>> means whatever you want it to mean. Shame, I thought we'd got past that >>> phase of evolution. >> -- >> John Snelson, Oracle Corporation http://snelson.org.uk/john >> Berkeley DB XML: http://www.oracle.com/database/berkeley-db/xml >> XQilla: http://xqilla.sourceforge.net >> >> _______________________________________________________________________ >> >> >> XML-DEV is a publicly archived, unmoderated list hosted by OASIS >> to support XML implementation and development. To minimize >> spam in the archives, you must subscribe before posting. >> >> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ >> Or unsubscribe: xml-dev-unsubscribe@l... >> subscribe: xml-dev-subscribe@l... >> List archive: http://lists.xml.org/archives/xml-dev/ >> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php >> >> > > _______________________________________________________________________ > > XML-DEV is a publicly archived, unmoderated list hosted by OASIS > to support XML implementation and development. To minimize > spam in the archives, you must subscribe before posting. > > [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/ > Or unsubscribe: xml-dev-unsubscribe@l... > subscribe: xml-dev-subscribe@l... > List archive: http://lists.xml.org/archives/xml-dev/ > List Guidelines: http://www.oasis-open.org/maillists/guidelines.php > -- John Snelson, Oracle Corporation http://snelson.org.uk/john Berkeley DB XML: http://www.oracle.com/database/berkeley-db/xml XQilla: http://xqilla.sourceforge.net
[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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|