mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-10-29 09:22:23 +00:00
Merge commit '8e096b19c1e0b45ccd43cc89d9d80b59bd783529'
This commit is contained in:
10
dependencies/jsmn/README.md
vendored
10
dependencies/jsmn/README.md
vendored
@@ -89,7 +89,7 @@ jsmn_parser p;
|
||||
jsmntok_t t[128]; /* We expect no more than 128 JSON tokens */
|
||||
|
||||
jsmn_init(&p);
|
||||
r = jsmn_parse(&p, s, strlen(s), t, 128);
|
||||
r = jsmn_parse(&p, s, strlen(s), t, 128); // "s" is the char array holding the json content
|
||||
```
|
||||
|
||||
Since jsmn is a single-header, header-only library, for more complex use cases
|
||||
@@ -113,10 +113,10 @@ Token types are described by `jsmntype_t`:
|
||||
|
||||
typedef enum {
|
||||
JSMN_UNDEFINED = 0,
|
||||
JSMN_OBJECT = 1,
|
||||
JSMN_ARRAY = 2,
|
||||
JSMN_STRING = 3,
|
||||
JSMN_PRIMITIVE = 4
|
||||
JSMN_OBJECT = 1 << 0,
|
||||
JSMN_ARRAY = 1 << 1,
|
||||
JSMN_STRING = 1 << 2,
|
||||
JSMN_PRIMITIVE = 1 << 3
|
||||
} jsmntype_t;
|
||||
|
||||
**Note:** Unlike JSON data types, primitive tokens are not divided into
|
||||
|
||||
8
dependencies/jsmn/jsmn.h
vendored
8
dependencies/jsmn/jsmn.h
vendored
@@ -45,10 +45,10 @@ extern "C" {
|
||||
*/
|
||||
typedef enum {
|
||||
JSMN_UNDEFINED = 0,
|
||||
JSMN_OBJECT = 1,
|
||||
JSMN_ARRAY = 2,
|
||||
JSMN_STRING = 3,
|
||||
JSMN_PRIMITIVE = 4
|
||||
JSMN_OBJECT = 1 << 0,
|
||||
JSMN_ARRAY = 1 << 1,
|
||||
JSMN_STRING = 1 << 2,
|
||||
JSMN_PRIMITIVE = 1 << 3
|
||||
} jsmntype_t;
|
||||
|
||||
enum jsmnerr {
|
||||
|
||||
Reference in New Issue
Block a user