Files
ArduinoJson/src/JsonObject.cpp

24 lines
622 B
C++
Raw Normal View History

2014-10-23 23:39:22 +02:00
// Copyright Benoit Blanchon 2014
// MIT License
//
// Arduino JSON library
// https://github.com/bblanchon/ArduinoJson
2014-10-27 22:50:50 +01:00
#include "ArduinoJson/JsonArray.hpp"
#include "ArduinoJson/JsonObject.hpp"
2014-10-27 22:50:50 +01:00
#include "ArduinoJson/JsonValue.hpp"
2014-10-16 16:25:42 +02:00
2014-10-18 23:05:54 +02:00
using namespace ArduinoJson;
2014-10-16 16:25:42 +02:00
2014-10-23 19:54:00 +02:00
JsonValue JsonObject::operator[](char const *key) {
2014-10-27 13:34:54 +01:00
return JsonValue(_impl ? (*_impl)[key] : NULL);
2014-10-16 16:25:42 +02:00
}
2014-10-27 13:34:54 +01:00
JsonArray JsonObject::createNestedArray(key_type key) {
return JsonArray(_impl ? _impl->createNestedArray(key) : NULL);
2014-10-16 16:25:42 +02:00
}
2014-10-27 13:34:54 +01:00
JsonObject JsonObject::createNestedObject(key_type key) {
return JsonObject(_impl ? _impl->createNestedObject(key) : NULL);
2014-10-22 21:56:38 +02:00
}