I am having the some problem... obviously, I'm trying to post different data, but structured the same way... and I'm also getting "[object object]" on PHP side... maybe if we bang our heads at same time to wall :)
I'll let you know if make it through the wall On Jul 10, 10:07 am, lionstone <[EMAIL PROTECTED]> wrote: > Hi, I am having trouble using $.postwith complexJSONstructures. > Specifically, when Ipostan 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"}; > $.post('spit.php', sampleJSON , function(txt){ console.log(txt); } ); > > What I am really hoping to do is: > > complexJSON = {}; > complexJSON = {"title":"abcd", "playlist": [ {"url": "url" }, {"url": > "url" }, {"url": "url" } ] } > $.post('spit.php', complexJSON , function(txt){ console.log(txt); } ); > > I've been really banging my head over this one, so all suggestions > would be greatly appreciated :) Thanks!