Added a verification of the token type before converting to string

This commit is contained in:
Benoit Blanchon
2014-01-11 16:53:20 +01:00
parent 4713e90f12
commit 1475066edd
4 changed files with 23 additions and 15 deletions

View File

@ -36,8 +36,9 @@ protected:
json = 0;
tokens = 0;
}
int getNestedTokenCount(int tokenIndex);
static int getNestedTokenCount(jsmntok_t* token);
char* getTokenString(jsmntok_t* token);
char* json;
jsmntok_t* tokens;