Loading ...
Sorry, an error occurred while loading the content.

906Re: [json] Re: JSoda

Expand Messages
  • Tatu Saloranta
    Nov 14, 2007
    • 0 Attachment
      On Nov 14, 2007 12:41 PM, Kyle Alan Hale <kylealanhale@...> wrote:
      > > I may be bit slow, but I am not sure I understand why you would want
      > > to wrap DOM within JSON?
      > > Why not deal with xml via DOM as is? And when transferring, let
      > > efficient xml generators/parsers take care of marshalling aspects?
      > >
      > > I do understand the interoperability aspects sometimes require one to
      > > use mappings to make things work (albeit inefficiently or awkwardly),
      > > but are there some other benefits?
      >
      > The DOM element objects themselves aren't being wrapped in JSON. In
      > fact, JSoda isn't JSON at all, it's just nested JavaScript objects.
      > Each object type represents a different thing:
      >
      > Object object -> DOM element
      > Array object -> DOM document fragment
      > String object -> DOM text node

      Ah ok. So it's more about javascript objects, not so much about json per se?
      If so, it is also related to methods like Badgerfish, which likewise
      allows dealing with xml data by converting it to a more palatable
      structure. :-)

      Thanks!

      -+ Tatu +-
    • Show all 7 messages in this topic