I need {"location":{"lat": 50.4, "lng": 30.5}}
send on the server
i do this
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);
List<NameValuePair> gps = new ArrayList<NameValuePair>(2);
gps.add(new BasicNameValuePair("lat", Util
.getLatitude()));
gps.add(new BasicNameValuePair("lng", Util
.getLatitude()));
nameValuePairs.add(new BasicNameValuePair("location",gps.toString()));
{"location":{"lat": "50.4", "lng": "30.5"}}
I need to send the type of float not string