XDK API  3.6.0
Documentation
Data Structures | Enumerations | Functions
jsmn.h File Reference
#include <stddef.h>
+ Include dependency graph for jsmn.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  jsmn_parser
 
struct  jsmntok_t
 

Enumerations

enum  jsmnerr_t
 
enum  jsmntype_t
 

Functions

void jsmn_init (jsmn_parser *parser)
 
int jsmn_parse (jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, unsigned int num_tokens)
 

Enumeration Type Documentation

enum jsmnerr_t
Enumerator
JSMN_ERROR_NOMEM 
JSMN_ERROR_INVAL 
JSMN_ERROR_PART 
enum jsmntype_t

JSON type identifier. Basic types are: o Object o Array o String o Other primitive: number, boolean (true/false) or null

Enumerator
JSMN_PRIMITIVE 
JSMN_OBJECT 
JSMN_ARRAY 
JSMN_STRING 

Function Documentation

void jsmn_init ( jsmn_parser parser)

Create JSON parser over an array of tokens

Creates a new parser based over a given buffer with an array of tokens available.

int jsmn_parse ( jsmn_parser parser,
const char *  js,
size_t  len,
jsmntok_t tokens,
unsigned int  num_tokens 
)

Run JSON parser. It parses a JSON data string into and array of tokens, each describing a single JSON object.

Parse JSON string and fill tokens.

+ Here is the call graph for this function:


All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:47 by doxygen 1.8.8