[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] ten years later, time to repeat it?
- From: John Snelson <john.snelson@oracle.com>
- To: Philip Fearon <pgfearo@googlemail.com>
- Date: Fri, 15 Feb 2008 11:53:10 +0000
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@oracle.com> 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@lists.xml.org
>> subscribe: xml-dev-subscribe@lists.xml.org
>> 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@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> 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
- References:
- RE: [xml-dev] ten years later, time to repeat it?
- From: Len Bullard <len.bullard@uai.com>
- Re: [xml-dev] ten years later, time to repeat it?
- From: Robert Koberg <rob@koberg.com>
- Re: [xml-dev] ten years later, time to repeat it?
- From: "Simon St.Laurent" <simonstl@simonstl.com>
- Re: [xml-dev] ten years later, time to repeat it?
- From: Robert Koberg <rob@koberg.com>
- RE: [xml-dev] ten years later, time to repeat it?
- From: "Michael Kay" <mike@saxonica.com>
- Re: [xml-dev] ten years later, time to repeat it?
- From: "Pete Cordell" <petexmldev@codalogic.com>
- Re: [xml-dev] ten years later, time to repeat it?
- From: John Snelson <john.snelson@oracle.com>
- Re: [xml-dev] ten years later, time to repeat it?
- From: "Pete Cordell" <petexmldev@codalogic.com>
- RE: [xml-dev] ten years later, time to repeat it?
- From: "Michael Kay" <mike@saxonica.com>
- Re: [xml-dev] ten years later, time to repeat it?
- From: John Snelson <john.snelson@oracle.com>
- Re: [xml-dev] ten years later, time to repeat it?
- From: "Philip Fearon" <pgfearo@googlemail.com>
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]