[web2py] JSONDecodeError: No JSON object could be decoded

2011-10-29 Thread wwwgong
Hi, add 2 functinos in myapp/controller/default.py @service.run def concat(a,b): return a+b @service.jsonrpc def concat2(a,b): return a+b test them using browser 1) http://127.0.0.1:8000/myapp/default/call/run/concat?a=hellob=world -- return 'helloworld' 2)

Re: [web2py] JSONDecodeError: No JSON object could be decoded

2011-10-29 Thread Jonathan Lundell
On Oct 29, 2011, at 9:36 PM, wwwgong wrote: Hi, add 2 functinos in myapp/controller/default.py @service.run def concat(a,b): return a+b @service.jsonrpc def concat2(a,b): return a+b test them using browser 1)