i am trying to convert json array
{"id":"1","name":"abc"},
{"id":"2","name":"pqr"},
{"id":"3","name":"xyz"};
into this kind of js array
var locations = [
[1, 'abc'],
[2, 'pqr'],
[3, 'xyz']
];