ForumsDevelopersadd.php v2.0 json response


add.php v2.0 json response
Author Message
Roderick Farrugia

Posted: Nov 11, 2010
Score: 0 Reference
Hi,

I am adding a task to a folder successfully, however the response seems to be an invalid JSON response. There is an unnecessary comma at the beginning of the array. Additionally, why is the "length" field being returned?

POST /2/tasks/add.php?key=XXXXXXXX;tasks=%5B%7B%22folder%22:1202693,%22title%22:%22test%20task%20for%20fo lder%20Home%22%7D%5D;fields=folder HTTP/1.1
Accept: text/html, application/json
Content-Length: 0
User-Agent: Java/1.6.0_21
Host: api.toodledo.com
Connection: keep-alive



HTTP/1.1 200 OK
Date: Wed, 10 Nov 2010 20:55:33 GMT
Server: Apache/2.2.3 (Red Hat)
Content-Length: 125
Keep-Alive: timeout=2, max=95
Connection: Keep-Alive
Content-Type: text/html; charset=UTF-8

[,{"id":"31312963","title":"test task for folder Home","modified":1289422533,"completed":0,"folder":"1202693","length":null}]

Thanks and Regards
Rod.
Jake

Toodledo Founder
Posted: Nov 11, 2010
Score: 0 Reference
Thanks for pointing out these bugs. They have been fixed.
You cannot reply yet

U Back to topic home

R Post a reply

To participate in these forums, you must be signed in.