I get data from a source in the form of a JSON. Let's say the JSON looks like this
var data = [
{"city" : "Bangalore", "population" : "2460832"}
]
I'd be passing this data object into a kendo grid and I'll be using its out-of-the-box features to format numbers. So, I need the same JSON as an object literal that looks like this
var data = [{city : "Bangalore", population: 2460832}]
Are there any libraries, functions or simple ways to achieve this?