text: -- json input
  CREATE OR REPLACE FUNCTION csm_parse_feature_geom(json)
      RETURNS geometry
      LANGUAGE sql
      IMMUTABLE PARALLEL SAFE
  AS $BODY$
      SELECT st_setsrid(st_geomfromgeojson(($1 -> 'geometry'::text)::text), 4326);
  $BODY$;
  
  -- jsonb input
  CREATE OR REPLACE FUNCTION csm_parse_feature_geom(jsonb)
      RETURNS geometry
      LANGUAGE sql
      IMMUTABLE PARALLEL SAFE
  AS $BODY$
      SELECT st_setsrid(st_geomfromgeojson(($1 -> 'geometry'::text)::text), 4326);
  $BODY$;