Post the whole traceback.
Also, I just want to make the comment that what you put here is not valid
json...
{'POST' : 'query POST'}
Single quotes aren't allowed.
Verify your json by going here:
http://jsonlint.com/
Also, before using JSON you might want to read the spec.
http://www.json.org/
Any reason why you are using JSON? In most cases it's very inefficient. I'd
recommend CSV or YAML.
On Monday, June 10, 2013 9:54:19 AM UTC-7, Carl wrote:
>
> I am passing the string {'POST' : 'query POST'} to my Web2py server code.
>
> Looking at gluon/main/py and tracing into sj.load(body) at line 225
> leads to Python/Lib/json/decoder.py but eventually gets to errmsg(), line
> 36, with
> msg = Expecting proper name.
> doc = [{'POST' : 'qwerty POST'}]
> pos = 2
> end = None
>
> I bet the answer is obvious (!) but can you point it out?
>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.