0

I'm sending an array of objects to php from javascript with ajax (fyi - I have dataType:"json" in the ajax code)

My array toSource() in JS displays

[{f:135, p:0}, {f:136, p:1}, {f:134, p:2}]

JSON.stringify on my js array shows

[{"f":135,"p":0},{"f":136,"p":1},{"f":134,"p":2}]

After stripslashes, php spits out

[{"f":135,"p":0},{"f":136,"p":1},{"f":134,"p":2}]

json_decode on this spits out

Array

Should I not get an array of some sort after the last step? What am I coding incorrectly?

Thanks for your help.

Shaun
  • 2,043
  • 3
  • 27
  • 36

0 Answers0