I could only repeat the result by reading the data directly from geopackage, not by saving the feature taken from gpkg into shapefile or OpenJUMP JML format. I produced a minimal geopackage
http://latuviitta.org/downloads/one_chicago.gpkg with only one feature for testing. The command to try is
ogrinfo -dialect sqlite -sql "select AsGeoJSON(geom) from \"geo_export_98941210-c995-4502-8ebb-93a09f29d615\"" one_chicago.gpkg
This is a Spatialite bug specific of ST_AsGeoJSON + Geopackage geometry blobs.
I've sent a patch to the Spatialite maintainer to fix it.
- for no precision loss at all, you can also do:
- or you can also use -dialect indirect_sqlite that will go through the slower
indirection of using a virtual sqlite table with spatialite geometries.