If you are just using the column value itself, you probably need to convert
it to a string before putting it in the json.
Example:
>>> c = long(10)
>>> c
10L
>>> str(c)
'10'
On Saturday, October 26, 2013 8:09:25 AM UTC-7, Ramesh Kumar wrote:
>
> Thanks Derek, but I am facing one more problem.
>
> Thanks Derek, but I am facing one more problem. An 'L' gets appended to
> integer data. When I try to get the dict into a json, I am facing "Uncaught
> SyntaxError: Unexpected token ILLEGAL " error. Any help on this?
>
Many web2py api objects as query results (Rows objects) or forms have an
Thanks Derek, but I am facing one more problem. An 'L' gets appended to
integer data. When I try to get the dict into a json, I am facing "Uncaught
SyntaxError: Unexpected token ILLEGAL " error. Any help on this?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http:
use {{=XML()}} around things you want to return raw in your views.
On Friday, October 25, 2013 12:23:16 PM UTC-7, Ramesh Kumar wrote:
>
> I want to access the server data in the client side. I am currently ajax
> calling and returning the data in a dict. I am storing the returned data
> structur
4 matches
Mail list logo