Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #12692
| References | <1314977665.30984.YahooMailNeo@web160510.mail.bf1.yahoo.com> <CAMZYqRTGnSVecpB0+2fegCtCkRt+Uiz_TeSH1vwfouEW0fLr5w@mail.gmail.com> <1315028216.36570.YahooMailNeo@web160520.mail.bf1.yahoo.com> |
|---|---|
| Date | 2011-09-02 22:50 -0700 |
| Subject | Re: json in python 2.5 |
| From | Chris Rebert <clp2@rebertia.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.728.1315029041.27778.python-list@python.org> (permalink) |
On Fri, Sep 2, 2011 at 10:36 PM, Vineet Deodhar <d_vineet@yahoo.com> wrote: >> e.g., I have this list: >> L = ['spam', 'ham', 'eggs', 12, (13.63)] >> What is the correct way to convert L to javascript array format? <snip> > Python likewise has a JSON module in the std lib: > http://docs.python.org/library/json.html > ======== > I tried with json in std lib. > But it is included in python 2.6 onwards. > For my current proj, I need to use python 2.5. > Hence can't use json from the std lib. > Any idea on converting list to json in python 2.5? http://pypi.python.org/pypi/simplejson/ Cheers, Chris
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: json in python 2.5 Chris Rebert <clp2@rebertia.com> - 2011-09-02 22:50 -0700
csiph-web