5#ifndef OGRLIBJSONUTILS_H_INCLUDED
6#define OGRLIBJSONUTILS_H_INCLUDED
11#include "cpl_json_header.h"
15bool CPL_DLL OGRJSonParse(
const char *pszText, json_object **ppoObj,
16 bool bVerboseError =
true);
18json_object CPL_DLL *CPL_json_object_object_get(
struct json_object *obj,
20json_object CPL_DLL *json_ex_get_object_by_path(json_object *poObj,
27lh_entry CPL_DLL *OGRGeoJSONFindMemberEntryByName(json_object *poObj,
29json_object CPL_DLL *OGRGeoJSONFindMemberByName(json_object *poObj,
36OGRFieldType CPL_DLL GeoJSONPropertyToFieldType(json_object *poObject,
38 bool bArrayAsString =
false);
42json_object CPL_DLL *json_object_new_double_with_precision(
double dfVal,
47json_object_new_double_with_significant_figures(
double dfVal,
48 int nSignificantFigures);
Core portability definitions for CPL.
#define CPL_C_END
Macro to end a block of C symbols.
Definition cpl_port.h:283
#define CPL_C_START
Macro to start a block of C symbols.
Definition cpl_port.h:279
C API and defines for OGRFeature, OGRGeometry, and OGRDataSource related classes.
OGRFieldSubType
List of field subtypes.
Definition ogr_core.h:816
OGRFieldType
List of feature field types.
Definition ogr_core.h:788