[Ocs] JSON spec

Mohd Izhar Firdaus Ismail kagesenshi.87 at gmail.com
Thu Feb 9 10:11:22 PST 2012


On Fri, Feb 10, 2012 at 2:06 AM, Mohd Izhar Firdaus Ismail
<kagesenshi.87 at gmail.com> wrote:
>> It is important to preserve the same parent and child node relations
>> in xml, also in the json output, in my opinion. I can write a mockup
>> into the draft according to the above conversion, but I would like to
>> know first: what others think. Opinions ?
>
> my concern is xml attribute representation in the json. if you see the
> conversion format, it changes <cat name="matilda"/> to {'cat':
> {'name': 'matilda'}}, which, if we try to convert back to xml, turns
> to <cat><name>matilda</name></cat>.
>
> and things might get tricky if theres <person
> details="summary"><details>user description</details></person> .. how
> would that work?.  of course if xml attribute is not used altogether,
> things get simpler and easier to use for such conversion.

This format specification should be less flaky i believe.
http://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html

-- 
Mohd Izhar Firdaus Bin Ismail / KageSenshi
Inigo Consulting (FOSS/Plone Development, Training & Services)
http://www.inigo-tech.com
Fedora Malaysia Contributor & Ambassador
http://blog.kagesenshi.org
92C2 B295 B40B B3DC 6866  5011 5BD2 584A 8A5D 7331


More information about the Ocs mailing list