Added verification of the type of token

This commit is contained in:
Benoit Blanchon
2014-01-11 16:41:18 +01:00
parent da37162a94
commit 4713e90f12
7 changed files with 74 additions and 74 deletions

View File

@ -15,8 +15,7 @@ public:
JsonObjectBase()
{
json = 0;
tokens = 0;
makeInvalid();
}
bool success()
@ -32,6 +31,12 @@ protected:
this->tokens = tokens;
}
void makeInvalid()
{
json = 0;
tokens = 0;
}
int getNestedTokenCount(int tokenIndex);
char* json;