NetBurner 3.5.0
PDF Version |
|
NetBurner's JSON library. See more details and examples below. More...
Classes | |
struct | JsonAllocString |
A list of large strings that are created with malloc. More... | |
class | JsonRef |
Represents a positional reference (pointer) of a location inside a ParsedJsonDataSet object More... | |
class | ParsedJsonDataSet |
A class to create, read, and modify a JSON object. More... | |
class | JsonLexerFDAdapter |
Get the type name of the JSON primitive type passed in. More... | |
Typedefs | |
typedef void | CharOutputFn(const char *chars, int len, void *blob) |
Helper function typedef for print functions. | |
Enumerations | |
enum | json_primitive_type { UNDEFINED , BEGIN_ARRAY , BEGIN_OBJECT , END_ARRAY , END_OBJECT , NAME , STRING , VALUE_SEPERATOR , NUMBER , FALSE_EL , TRUE_EL , NULL_EL , STRING_TOO_BIG , ALLOC_STRING , NOTFOUND , EOF_EL } |
The following types define the basic building blocks that make up a JSON data set. These are the values that will be returned from the functions used to parse the data set. Member functions include operators to return specific data type, as well as type validity checks. More... | |
NetBurner's JSON library. See more details and examples below.
#include< json_lexer.h >
The library enables rapid, performant parsing, traversal, and querying of JSON data. It also works seamlessly as a buffer_object for the Web Client's DoGet() function.
ParsedJsonDataSet is the root object that holds the document, and JsonRef is the result of each query function, serving as a pointer to a location in the document but also as a chainable query and inspection interface.
See also the JSON Lexer Example Applications.
typedef void CharOutputFn(const char *chars, int len, void *blob) |
#include <json_lexer.h>
Helper function typedef for print functions.
chars | The characters to print. |
len | The length of the characters to print. |
blob | A pointer to where they should be printed. |
enum json_primitive_type |
#include <json_lexer.h>
The following types define the basic building blocks that make up a JSON data set. These are the values that will be returned from the functions used to parse the data set. Member functions include operators to return specific data type, as well as type validity checks.