i have a problem. Navigation Data sent by Json but some data is dynamic.
{
        "type": "FeatureCollection",
        "features": [
              {
                    "type": "Feature",
                    "geometry": {
                          "type": "Point",
                          "coordinates": [
                    127.032737,
                    37.260704
                ]        
            }
}
coordinates in the geometric is this.
{
                    "type": "Feature",
                    "geometry": {
                          "type": "LineString",
                          "coordinates": [
                                [
                        127.032680,
                        37.260549
                    ],
                                [
                        127.032680,
                        37.260549
                    ]        
                ]        
            }
}
when type String in geometry is "LineString", coordinates in geometry changes.
but my geometry class is like this.
public class Geometry {
    String type = "";
    public List<String> coordinates;
}
so i want to know how to get these dynamaic data by Gson ( java class )
in my think, i have to use deserialize, but i don't know..
 
     
     
    