Hello,
I’m using backendless_sdk: ^8.0.0-alpha.24
I used Point
data type to convert values from column with type Point
but the json-decoding not working. the value returns always null.
How can I decode values with type Point
?
Hello,
I’m using backendless_sdk: ^8.0.0-alpha.24
I used Point
data type to convert values from column with type Point
but the json-decoding not working. the value returns always null.
How can I decode values with type Point
?
You can decode coordinatest with these two functions:
String getJsonCoordinatePairs()
String getWktCoordinatePairs()
Also, jsonEncode return me this:
{"type":"Point","coordinates":[15.05,15.05],"srsId":4326,"___class":"com.backendless.persistence.Point"}
My test code:
var geo_point = await Backendless.data.of('GeoTest').findFirst();
var jsonVal = jsonEncode(geo_point['p1']);
print(jsonVal);
Regards, Nikita.