[jQuery] Using $.post with complex JSON structures

2008-07-10 Thread lionstone
Hi, I am having trouble using $.post with complex JSON structures. Specifically, when I post an object that contains an object or array as a value, the nested object posts as the string "[object+object]" . Sample code: sampleJSON = {}; sampleJSON = { "a" : "b", "c" : {"d": "e", "f":"g"}, "h": "i"

[jQuery] Using $.post with complex JSON structures

2008-07-10 Thread lionstone
Hi, I am having trouble using $.post with complex JSON structures. Specifically, when I post an object that contains an object or array as a value, the nested object posts as the string "[object+object]" . Sample code: sampleJSON = {}; sampleJSON = { "a" : "b", "c" : {"d": "e", "f":"g"}, "h": "i"