Demo application for using the AT&T IoT Starter Kit Powered by AWS.

Dependencies:   SDFileSystem

Fork of ATT_AWS_IoT_demo by Anthony Phillips

Embed: (wiki syntax)

« Back to documentation index

jsmn.h File Reference

jsmn.h File Reference

Definition of the JSMN (Jasmine) JSON parser. More...

Go to the source code of this file.

Data Structures

struct  jsmntok_t
 JSON token description. More...
struct  jsmn_parser
 JSON parser. More...

Enumerations

enum  jsmntype_t
 

JSON type identifier.

More...

Functions

void jsmn_init (jsmn_parser *parser)
 Create JSON parser over an array of tokens.
jsmnerr_t jsmn_parse (jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, unsigned int num_tokens)
 Run JSON parser.

Detailed Description

Definition of the JSMN (Jasmine) JSON parser.

For more information on JSMN:

See also:
http://zserge.com/jsmn.html

Definition in file jsmn.h.


Enumeration Type Documentation

enum jsmntype_t

JSON type identifier.

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

Definition at line 46 of file jsmn.h.


Function Documentation

void jsmn_init ( jsmn_parser parser )

Create JSON parser over an array of tokens.

Definition at line 338 of file jsmn.cpp.

jsmnerr_t 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.

Definition at line 193 of file jsmn.cpp.