I have a JSON object like this coming back as a server response:
{"0":"1","1":"2","2":"3","3":"4"}
I want to convert it into JavaScript array like:
["1","2","3","4"]
Is there a best way to do this? Wherever I am reading, people are using complex logic using loops. So are there alternative methods to doing this?