JSON irregular formatting

24 views
Skip to first unread message

Chris Lock

unread,
Oct 23, 2012, 11:53:57 AM10/23/12
to slimti...@googlegroups.com
Hi there,

I've begun to play and write a bare PHP library to fit SlimTimer for a bit of an excercise to keep my brain busy. First of all thanks for SlimTimer, love what it does. Wondered if you knew that the JSON that your throwing back is not formatted as I expected (and is therefore not allowing PHP to parse it.

[{coworkers: [], name: "TPG Update script check", created_at: {}, completed_on: {}, owners: [{name: "DELETED", user_id: 96822, email: "m...@deleted.com"}], updated_at: {}, role: "owner", tags: "", id: 1879734, reporters: [], hours: 0.16}]

if I put this into http://jsonlint.com it also tells me it's not formatted correctly, key's should be quoted so your json should look like this

[{"coworkers": [], "name": "TPG Update script check", "created_at": {}, "completed_on": {}, "owners": [{"name": "DELETED", "user_id": 96822, "email": "m...@deleted.com"}], "updated_at": {}, "role": "owner", "tags": "", "id": 1879734, "reporters": [], "hours": 0.16}]


If you could fix this that would be great, would save me having to drill through the XML

Thanks
Reply all
Reply to author
Forward
0 new messages