PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ postgis_libjson_version()

Datum postgis_libjson_version ( PG_FUNCTION_ARGS  )

Definition at line 32 of file lwgeom_in_geojson.c.

References geom_from_geojson(), and PG_FUNCTION_INFO_V1().

33 {
34 #ifndef HAVE_LIBJSON
35  PG_RETURN_NULL();
36 #else /* HAVE_LIBJSON */
37 # ifdef JSON_C_VERSION
38  const char *ver = json_c_version();
39 # else
40  const char *ver = "UNKNOWN";
41 # endif
42  text *result = cstring2text(ver);
43  PG_RETURN_POINTER(result);
44 #endif
45 }
Here is the call graph for this function: