JSON parsing library by Andrii Mamchur https://github.com/amamchur/jsonlite

Dependents:   M2X_dev MTS_M2x_Example1 MTS_M2x_Example m2x-demo-all ... more

Embed: (wiki syntax)

« Back to documentation index

jsonlite_token Struct Reference

jsonlite_token Struct Reference

Contains information about parsed token. More...

#include <jsonlite.h>

Data Fields

void * ext
 This variable is reserved for high-level libraries.
const uint8_t * start
 Contains the start position of token.
const uint8_t * end
 Contains the end position of tokens.
jsonlite_number_type number
 Contains the hints for number token parsing.
jsonlite_string_type string
 Contains the hints for string token parsing.

Detailed Description

Contains information about parsed token.

Definition at line 520 of file jsonlite.h.


Field Documentation

const uint8_t* end

Contains the end position of tokens.

End position does not below to token, it should be interpreted as position of zero character.

Note:
To measure token length you can use following expression: token->end - token->start.

Definition at line 535 of file jsonlite.h.

void* ext

This variable is reserved for high-level libraries.

Definition at line 523 of file jsonlite.h.

jsonlite_number_type number

Contains the hints for number token parsing.

Definition at line 542 of file jsonlite.h.

const uint8_t* start

Contains the start position of token.

Definition at line 527 of file jsonlite.h.

jsonlite_string_type string

Contains the hints for string token parsing.

Definition at line 546 of file jsonlite.h.