WE310F5  39.00.000
m2mb_json.h File Reference

This file contains the public APIs and structures of the json parser module. More...

Go to the source code of this file.

Data Structures

struct  M2MB_JSON_NODE
 Json node structure. More...
 
struct  M2MB_JSON_DATE
 Json date structure json. More...
 
struct  M2MB_JSON_TIME
 Json time structure json. More...
 
struct  M2MB_JSON_DATE_TIME
 Json date & time structure json. More...
 
struct  M2MB_JSON_DURATION
 Json duration structure. More...
 
struct  M2MB_JSON_HEX
 HEX stream structure json. More...
 
struct  M2MB_JSON_OBJ
 Json object structure. More...
 
struct  M2MB_JSON_COMPLEX_INFO
 Json complex information structure. More...
 
struct  M2MB_JSON_COMPLEX_OBJ
 Json complex object structure. More...
 
enum  M2MB_JSON_OBJ_TYPE {
  M2MB_JSON_COMPLEX_ELEMENT,
  M2MB_JSON_SIMPLE_ELEMENT
}
 Object type supported by the json. More...
 
enum  M2MB_JSON_DATA_TYPE {
  M2MB_JSON_DT_NONE,
  M2MB_JSON_DT_UINT8,
  M2MB_JSON_DT_INT8,
  M2MB_JSON_DT_UINT16,
  M2MB_JSON_DT_INT16,
  M2MB_JSON_DT_UINT32,
  M2MB_JSON_DT_INT32,
  M2MB_JSON_DT_UINT64,
  M2MB_JSON_DT_INT64,
  M2MB_JSON_DT_FLOAT,
  M2MB_JSON_DT_DOUBLE,
  M2MB_JSON_DT_STR,
  M2MB_JSON_DT_TOKEN,
  M2MB_JSON_DT_BASE64BIN,
  M2MB_JSON_DT_HEXBIN,
  M2MB_JSON_DT_DATE,
  M2MB_JSON_DT_TIME,
  M2MB_JSON_DT_DATE_TIME,
  M2MB_JSON_DT_DURATION,
  M2MB_JSON_DT_BOOL,
  M2MB_JSON_DT_TLV8,
  M2MB_JSON_DT_IPV4,
  M2MB_JSON_DT_IPV6,
  M2MB_JSON_DT_IP,
  M2MB_JSON_DT_MAC
}
 Data type supported by the json. More...
 
typedef enum M2MB_JSON_OBJ_TYPE M2MB_JSON_OBJ_TYPE_T
 Object type supported by the json. More...
 
typedef enum M2MB_JSON_DATA_TYPE M2MB_JSON_DATA_TYPE_T
 Data type supported by the json. More...
 
typedef struct M2MB_JSON_NODE M2MB_JSON_NODE_T
 Json node structure. More...
 
typedef struct M2MB_JSON_DATE M2MB_JSON_DATE_T
 Json date structure json. More...
 
typedef struct M2MB_JSON_TIME M2MB_JSON_TIME_T
 Json time structure json. More...
 
typedef struct M2MB_JSON_DATE_TIME M2MB_JSON_DATE_TIME_T
 Json date & time structure json. More...
 
typedef struct M2MB_JSON_DURATION M2MB_JSON_DURATION_T
 Json duration structure. More...
 
typedef struct M2MB_JSON_HEX M2MB_JSON_HEX_T
 HEX stream structure json. More...
 
typedef struct M2MB_JSON_OBJ M2MB_JSON_OBJ_T
 Json object structure. More...
 
typedef struct M2MB_JSON_COMPLEX_INFO M2MB_JSON_COMPLEX_INFO_T
 Json complex information structure. More...
 
typedef struct M2MB_JSON_COMPLEX_OBJ M2MB_JSON_COMPLEX_OBJ_T
 Json complex object structure. More...
 
M2MB_STATUS_T m2mb_json_encode (M2MB_JSON_COMPLEX_OBJ_T *jsonSchema, UINT8 *usrStruct, UINT8 *jsonFileBuffer, UINT32 jsonFileBufferSize, UINT32 *lenOfJsonWritten)
 Encode API for JSON module. More...
 
M2MB_STATUS_T m2mb_json_decode (UINT8 *parent_start, UINT8 *parent_end, M2MB_JSON_COMPLEX_OBJ_T *jsonSchema, UINT8 *returnStruct)
 Decode API for JSON module. More...
 
UINT16 m2mb_json_node_get (M2MB_JSON_NODE_T *pCNode, UINT8 *pPNStart, UINT8 *pPNEnd)
 Get node API for JSON module. More...
 
UINT16 m2mb_json_node_occ_get (UINT8 *pTName, UINT8 *pPNStart, UINT8 *pPNEnd)
 Occurrence of node present API for JSON module. More...
 

Detailed Description

This file contains the public APIs and structures of the json parser module.

we866e4/epl/inc/modules/m2mb_json.h

This file contains JSON API.

Note
<Notes, dependencies mandatory> Dependencies:
"#include m2mb_types.h"
"#include m2mb_status.h"
Author
AV
Date
22/12/2017

Definition in file m2mb_json.h.