Reputation: 105
Hey guys im currently working on an app that will receive a vast amount of co-ordinates via a JSON file, the json file will look like the following:
{"posts":[{"Latitude":"53.4041999","lontitude":"-6.377542","Latitude":"53.4041999","lontitude":"-6.377542","Latitude":"53.4041999","lontitude":"-6.377542"}]}
Does anyone have any suggestions of how I could get the co-ordinates as double values ?
Upvotes: 0
Views: 211
Reputation: 9189
Easier than gson
and Double.parseDouble()
use getDouble() or optDouble().
Upvotes: 2