JSON-C support for ST_GeomFromGeoJSON (PostGIS extension)

I hit an issue with the ST_GeomFromGeoJSON method.

A valid call from the documentation would be like so:

SELECT ST_GeomFromGeoJSON('{"type":"Point","coordinates":[-48.23456,20.12345]}');

This throws an exception because JSON-C is not enabled.

I was able to run these queries two weeks ago but haven’t run any tests since then.

Do you know of anything which may have changed in the backend since?

Thank you for bringing this to our attention! We are investigating this issue and will let you know when we have a fix.

I reproduced the issue and determined there was a missing build dependency from when we upgraded our base OS two weeks ago. I’ve added the dependency and a rollout will happen over the next hour to resolve the issue.

I’ve also upgraded Postgis to 3.3.2. You can run SELECT postgis_extensions_upgrade(); per 36. Software Upgrades — Introduction to PostGIS and I did so without issue. That said, upgrading is not necessary for the fix above.