// ArduinoJson - arduinojson.org // Copyright Benoit Blanchon 2014-2018 // MIT License #pragma once namespace ArduinoJson { namespace Internals { // A metafunction that returns the type of the value returned by // JsonVariant::as() template struct JsonVariantAs { typedef T type; }; template <> struct JsonVariantAs { typedef const char* type; }; template <> struct JsonVariantAs { typedef JsonArray& type; }; template <> struct JsonVariantAs { typedef const JsonArray& type; }; template <> struct JsonVariantAs { typedef JsonObject& type; }; template <> struct JsonVariantAs { typedef const JsonObject& type; }; } }