MeterLogger
Macros | Enumerations
json.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define JSON_TYPE_ARRAY   '['
 
#define JSON_TYPE_OBJECT   '{'
 
#define JSON_TYPE_PAIR   ':'
 
#define JSON_TYPE_PAIR_NAME   'N' /* for N:V pairs */
 
#define JSON_TYPE_STRING   '"'
 
#define JSON_TYPE_INT   'I'
 
#define JSON_TYPE_NUMBER   '0'
 
#define JSON_TYPE_ERROR   0
 
#define JSON_TYPE_NULL   'n'
 
#define JSON_TYPE_TRUE   't'
 
#define JSON_TYPE_FALSE   'f'
 
#define JSON_TYPE_CALLBACK   'C'
 
#define JSON_CONTENT_TYPE   "application/json"
 

Enumerations

enum  {
  JSON_ERROR_OK, JSON_ERROR_SYNTAX, JSON_ERROR_UNEXPECTED_ARRAY, JSON_ERROR_UNEXPECTED_END_OF_ARRAY,
  JSON_ERROR_UNEXPECTED_OBJECT, JSON_ERROR_UNEXPECTED_STRING
}
 

Detailed Description

A few JSON defines used for parsing and generating JSON.

Author
Niclas Finne nfi@s.nosp@m.ics..nosp@m.se Joakim Eriksson joaki.nosp@m.me@s.nosp@m.ics.s.nosp@m.e

Definition in file json.h.

Macro Definition Documentation

◆ JSON_CONTENT_TYPE

#define JSON_CONTENT_TYPE   "application/json"

Definition at line 68 of file json.h.

◆ JSON_TYPE_ARRAY

#define JSON_TYPE_ARRAY   '['

Definition at line 43 of file json.h.

◆ JSON_TYPE_CALLBACK

#define JSON_TYPE_CALLBACK   'C'

Definition at line 57 of file json.h.

◆ JSON_TYPE_ERROR

#define JSON_TYPE_ERROR   0

Definition at line 50 of file json.h.

◆ JSON_TYPE_FALSE

#define JSON_TYPE_FALSE   'f'

Definition at line 55 of file json.h.

◆ JSON_TYPE_INT

#define JSON_TYPE_INT   'I'

Definition at line 48 of file json.h.

◆ JSON_TYPE_NULL

#define JSON_TYPE_NULL   'n'

Definition at line 53 of file json.h.

◆ JSON_TYPE_NUMBER

#define JSON_TYPE_NUMBER   '0'

Definition at line 49 of file json.h.

◆ JSON_TYPE_OBJECT

#define JSON_TYPE_OBJECT   '{'

Definition at line 44 of file json.h.

◆ JSON_TYPE_PAIR

#define JSON_TYPE_PAIR   ':'

Definition at line 45 of file json.h.

◆ JSON_TYPE_PAIR_NAME

#define JSON_TYPE_PAIR_NAME   'N' /* for N:V pairs */

Definition at line 46 of file json.h.

◆ JSON_TYPE_STRING

#define JSON_TYPE_STRING   '"'

Definition at line 47 of file json.h.

◆ JSON_TYPE_TRUE

#define JSON_TYPE_TRUE   't'

Definition at line 54 of file json.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
JSON_ERROR_OK 
JSON_ERROR_SYNTAX 
JSON_ERROR_UNEXPECTED_ARRAY 
JSON_ERROR_UNEXPECTED_END_OF_ARRAY 
JSON_ERROR_UNEXPECTED_OBJECT 
JSON_ERROR_UNEXPECTED_STRING 

Definition at line 59 of file json.h.