mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 12:32:17 +02:00
Added JsonArray::getHashTable()
This commit is contained in:
18
JsonArray.h
18
JsonArray.h
@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user