[web2py] customize json output
Hello! I'm using web2py with jquery and jquery.flot plugin Tell me please how can I get json output like following: [ { label: Foo, data: [ [10, 1], [17, -14], [30, 5] ] }, { label: Bar, data: [ [11, 13], [19, 11], [30, -7] ] } ]
Re: [web2py] customize json output
On Wed, Dec 29, 2010 at 3:38 PM, bova povetki...@gmail.com wrote: Hello! I'm using web2py with jquery and jquery.flot plugin Tell me please how can I get json output like following: [ { label: Foo, data: [ [10, 1], [17, -14], [30, 5] ] }, { label: Bar, data: [ [11, 13], [19, 11], [30, -7] ] } ] Try returning the exact same thing as JSON, and see if it works. -- Branko Vukelic stu...@brankovukelic.com http://www.brankovukelic.com/