Why would JSON.stringify()
return:
[]
The same happens with jQuery: $.JSON.encode()
What could cause this? I am passing in a simple array of objects, where each object has string properties. I have looped through and alerted each objects properties and all looks fine, but for some reason both the encode methods are returning []
.