Conversation
6f3c3f0 to
53fa3ed
Compare
Previously it only worked with JSON, now it works with any format supported by kotlinx.serialization
1fd80ad to
4c1c3db
Compare
|
Ah, maybe that's the reason why the serializers/deserializers in maplibre/maplibre-java#40 look more complicated - because they are not limited to JSON. It would be consistent to either support any format supported by kotlinx.serialization or only JSON for all model classes. Maybe the code could be somewhat copied from the mentioned PR. (But the question is, why should one deserialize/serialize GeoJSON to anything else than JSON?) |
Agreed (in particular, should support any format supported by
I'm also curious, though I guess protobuf and BSON are probably common enough use cases. |
geojson/src/commonMain/kotlin/org/maplibre/spatialk/geojson/serialization/PositionSerializer.kt
Show resolved
Hide resolved
|
Android datastore uses protobuf, and |
Previously it only worked with JSON, now it works with any format supported by kotlinx.serialization