// Copyright Benoit Blanchon 2014-2017 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson // If you like this project, please add a star! #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; }; } }