Files
ArduinoJson/src/JsonObject.cpp
2014-10-27 22:50:50 +01:00

24 lines
622 B
C++

// Copyright Benoit Blanchon 2014
// MIT License
//
// Arduino JSON library
// https://github.com/bblanchon/ArduinoJson
#include "ArduinoJson/JsonArray.hpp"
#include "ArduinoJson/JsonObject.hpp"
#include "ArduinoJson/JsonValue.hpp"
using namespace ArduinoJson;
JsonValue JsonObject::operator[](char const *key) {
return JsonValue(_impl ? (*_impl)[key] : NULL);
}
JsonArray JsonObject::createNestedArray(key_type key) {
return JsonArray(_impl ? _impl->createNestedArray(key) : NULL);
}
JsonObject JsonObject::createNestedObject(key_type key) {
return JsonObject(_impl ? _impl->createNestedObject(key) : NULL);
}