Is there a way to specify type while parsing Json, so that the conversion happens automatically.
So I have the jsonData, and the x and y values needs to be n
The only way is to loop through you JSON data and convert the strings you find into numbers using parseInt("2");.
parseInt("2");