PHP Noob here...
if i have JSON format: {"0":"0x1001C","1":"0"}
but what i really want is is: {"0x1001C","0"}
how do i attain this?
esentially, i have an array which contains keys and values. i'm removing the keys (as this is a requrement) and the final array must be in object format (in other words, JSON has to return something with {} rather than [] )
Any ideas?
Thanks in advance
{}rather than[]), you want to convert it to an array and then back to an object??? What you want ({"foo","bar"}) is invalid JSON.{}will always show key-value pairs,[]won't, there's no in-between.