PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ postgis_libjson_version()

Datum postgis_libjson_version ( PG_FUNCTION_ARGS  )

Definition at line 47 of file lwgeom_in_geojson.c.

References geom_from_geojson(), and PG_FUNCTION_INFO_V1().

48 {
49 #ifndef HAVE_LIBJSON
50  PG_RETURN_NULL();
51 #else /* HAVE_LIBJSON */
52 # ifdef JSON_C_VERSION
53  const char *ver = json_c_version();
54 # else
55  const char *ver = "UNKNOWN";
56 # endif
57  text *result = cstring2text(ver);
58  PG_RETURN_POINTER(result);
59 #endif
60 }
Here is the call graph for this function: