[web2py] Re: json Data from the server not displaying!

2023-03-20 Thread Leonel Câmara
The problem is that you are creating the string you want to return and then putting it in a dictionary. You could just have returned the string. That said it's better to use response.json which does a few other things for you. Try this def dashboard(): call_clicks = db().select(db.dashboard

[web2py] Re: json data breaks, via routing, to a web2py controller

2018-11-05 Thread Carl Hunter Roach
thanks Dave. I wasn't Base64 encoding it myself. The "=" is there in the string returned by Google Talent Solution. Perhaps they've Base64 encoded it. For now, I am percent-encoding/decoding it. It looks like it's nothing do to with Web2py but I'd still like to know what is tripping loads() up.

[web2py] Re: json data breaks, via routing, to a web2py controller

2018-11-04 Thread Dave S
On Sunday, November 4, 2018 at 5:06:33 AM UTC-8, Carl Hunter Roach wrote: > > As suspected, my workaround was to URL encode the "offending" fields at > the client end. simpleton.loads() then parsed the json happily. The field > could then be "unencoded". > > My system has plenty of json passing

[web2py] Re: json data breaks, via routing, to a web2py controller

2018-11-04 Thread Carl Hunter Roach
As suspected, my workaround was to URL encode the "offending" fields at the client end. simpleton.loads() then parsed the json happily. The field could then be "unencoded". My system has plenty of json passing between clients and the Web2py service. I can't work out why I've tripped over here.

[web2py] Re: JSON data in HTML web page

2014-04-04 Thread Derek
Well, you'd look at using a client side templating library. Sane people use mustache or handlebars, I prefer Jqote2. On Thursday, April 3, 2014 5:38:22 PM UTC-7, Ramesh Aj wrote: > > I am reading data from remote machine and converting it into dictionary > format > like > {IP: [192.111.111.111

Re: [web2py] Re: JSON Data

2011-01-20 Thread contatogilson...@gmail.com
I want it to be rendered directly in the javascript: ... events: [{{}} = jsonData] _ *Gilson Filho* *Web Developer Blog:* blog.gilsondev.com *Twitter:* twitter.com/gilsonfilho 2011/1/20 DenesL > > You either return the json yourself or you let web

[web2py] Re: JSON Data

2011-01-20 Thread DenesL
You either return the json yourself or you let web2py do it. If you do it: response.headers['Content-Type']='application/json' return json.dumps(dict(id=ag.agenda.id, ...)) or if you want web2py to do it: return dict(id=ag.agenda.id, ...) and call it with .../index.json in this case you