2014-07-16 13:26:11 +02:00
|
|
|
/*
|
|
|
|
* Arduino JSON library
|
|
|
|
* Benoit Blanchon 2014 - MIT License
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "jsmn.h"
|
2014-07-16 13:41:00 +02:00
|
|
|
#include "JsonObjectBase.h"
|
|
|
|
|
2014-07-16 13:26:11 +02:00
|
|
|
namespace ArduinoJson
|
|
|
|
{
|
|
|
|
namespace Parser
|
|
|
|
{
|
|
|
|
class JsonArray;
|
|
|
|
class JsonHashTable;
|
|
|
|
|
2014-07-16 13:41:00 +02:00
|
|
|
class JsonValue : public JsonObjectBase
|
2014-07-16 13:26:11 +02:00
|
|
|
{
|
|
|
|
public:
|
2014-07-16 13:41:00 +02:00
|
|
|
JsonValue() {}
|
|
|
|
|
|
|
|
JsonValue(char* json, jsmntok_t* tokens)
|
|
|
|
: JsonObjectBase(json, tokens)
|
2014-07-16 13:26:11 +02:00
|
|
|
{
|
2014-07-16 13:41:00 +02:00
|
|
|
|
2014-07-16 13:26:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
operator bool();
|
|
|
|
operator double();
|
|
|
|
operator long();
|
|
|
|
operator char*();
|
|
|
|
operator JsonArray();
|
|
|
|
operator JsonHashTable();
|
2014-07-17 12:59:26 +02:00
|
|
|
|
|
|
|
JsonValue operator[](const char* key);
|
2014-07-16 13:26:11 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|