mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-18 13:02:25 +02:00
42 lines
745 B
C++
42 lines
745 B
C++
/*
|
|
* Arduino JSON library
|
|
* Benoit Blanchon 2014 - MIT License
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "jsmn.h"
|
|
|
|
#include "JsonObjectBase.h"
|
|
|
|
namespace ArduinoJson
|
|
{
|
|
namespace Parser
|
|
{
|
|
class JsonArray;
|
|
class JsonHashTable;
|
|
|
|
class JsonValue : public JsonObjectBase
|
|
{
|
|
friend JsonArray;
|
|
friend JsonHashTable;
|
|
|
|
public:
|
|
|
|
JsonValue() {}
|
|
|
|
JsonValue(char* json, jsmntok_t* tokens)
|
|
: JsonObjectBase(json, tokens)
|
|
{
|
|
|
|
}
|
|
|
|
operator bool();
|
|
operator double();
|
|
operator long();
|
|
operator char*();
|
|
operator JsonArray();
|
|
operator JsonHashTable();
|
|
};
|
|
}
|
|
} |