Added JsonArray::getHashTable()

This commit is contained in:
Benoit Blanchon
2014-01-11 15:11:23 +01:00
parent e924bef409
commit ef8c0ceea8
3 changed files with 17 additions and 15 deletions

View File

@ -9,6 +9,8 @@
#include "JsonObjectBase.h"
class JsonHashTable;
class JsonArray : public JsonObjectBase
{
friend class JsonParserBase;
@ -16,25 +18,21 @@ class JsonArray : public JsonObjectBase
public:
public:
JsonArray() {}
JsonArray()
int getLength()
{
return tokens != 0 ? tokens[0].size : 0;
}
JsonArray getArray(int index);
char* getString(int index)
{
jsmntok_t* token = getToken(index);
return token != 0 ? json + token->start : 0;
}
int getLength()
{
return tokens != 0 ? tokens[0].size : 0;
}
JsonArray getArray(int index);
JsonHashTable getHashTable(int index);
private: