Re: converting JSON to string

2008-01-13 Thread Gowri
On Jan 12, 2:58 am, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED] nomine.org> wrote: > -On [20080112 08:38], Gowri ([EMAIL PROTECTED]) wrote: > > >Actually, I have one other problem after all this. I see that if I try > >to construct JSON output as above, it is of the form > >[{'isbn': u'1-56592

Re: converting JSON to string

2008-01-12 Thread Jeroen Ruigrok van der Werven
-On [20080112 08:38], Gowri ([EMAIL PROTECTED]) wrote: >Actually, I have one other problem after all this. I see that if I try >to construct JSON output as above, it is of the form >[{'isbn': u'1-56592-724-9', 'title': u'The Cathedral & the Bazaar'}, >{'isbn': u'1-56592-051-1', 'title': u'Making Te

Re: converting JSON to string

2008-01-11 Thread Gowri
On Jan 11, 7:21 pm, Adonis Vargas <[EMAIL PROTECTED]> wrote: > Gowri wrote: > > Hello, > > > I actually have two questions: > > 1. Are there any libraries which convert XML to JSON? > > 2. I am currently doing the above using the DOM parser and creating a > > JSON array > > > > > for node in doc.g

Re: converting JSON to string

2008-01-11 Thread Gowri
Hi Adonis, Thanks so much. Appreciate it :) -- http://mail.python.org/mailman/listinfo/python-list

Re: converting JSON to string

2008-01-11 Thread Adonis Vargas
Gowri wrote: > Hello, > > I actually have two questions: > 1. Are there any libraries which convert XML to JSON? > 2. I am currently doing the above using the DOM parser and creating a > JSON array > > > for node in doc.getElementsByTagName("book"): > isbn = node.getAttribute("is

converting JSON to string

2008-01-11 Thread Gowri
Hello, I actually have two questions: 1. Are there any libraries which convert XML to JSON? 2. I am currently doing the above using the DOM parser and creating a JSON array for node in doc.getElementsByTagName("book"): isbn = node.getAttribute("isbn") titleNode =