On Sat, Mar 24, 2012 at 21:57, James Rubino <james.rub...@gmail.com> wrote: > > Where Movie.data() and the likes would have outputted class data it simply > takes the name and id and turns it into a string. > How can we best implement JSON output within all of the IMDbPy package > (perhaps it is already)?.
That's an excellent idea! JSON support is for sure something we've to add. We already have XML output; try something like: movie.asXML() Probably the best solution would be to derive the JSON from that XML (at least, it should be less code to maintain). I have to think a little about it (maybe we can convert the xml to python objects using lxml or beautifulsoup, and then use simplejson for the output) Thanks for the idea! -- Davide Alberani <davide.alber...@gmail.com> [PGP KeyID: 0x465BFD47] http://www.mimante.net/ ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Imdbpy-devel mailing list Imdbpy-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/imdbpy-devel