Re: [web2py] BUG in JSON parsing in main.py

2013-05-23 Thread Jonathan Lundell
On 23 May 2013, at 7:52 PM, Matt wrote: > Thanks for your response. > > Unfortunately that example isn't quite the same as how json is processed from > the body in main.py. I.e. it's using cStringIO I think. Right. That's why I think it'd be useful to see what body.read() returns (reading th

Re: [web2py] BUG in JSON parsing in main.py

2013-05-23 Thread Matt
Thanks for your response. Unfortunately that example isn't quite the same as how json is processed from the body in main.py. I.e. it's using cStringIO I think. I can put together an example that highlights this I guess. On Friday, May 24, 2013 12:53:14 PM UTC+12, Jonathan Lundell wrote: > > On

Re: [web2py] BUG in JSON parsing in main.py

2013-05-23 Thread Jonathan Lundell
On 23 May 2013, at 5:35 PM, Matt wrote: > Hi there, > > I'm using Version 2.4.6-stable+timestamp.2013.05.17.14.52.19, Running on mac, > Python 2.7.2, no external JSON library installed. > > Sending the following data via PUT, application/json; charset=UTF-8: > > {"id": 3} > > results in a JSO

[web2py] BUG in JSON parsing in main.py

2013-05-23 Thread Matt
Hi there, I'm using Version 2.4.6-stable+timestamp.2013.05.17.14.52.19, Running on mac, Python 2.7.2, no external JSON library installed. Sending the following data via PUT, application/json; charset=UTF-8: {"id": 3} results in a JSON parser error occurring at main.py: if is_json: