From b0fb71f7d89e0b9349a565ba4d8660f4a30998e3 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Fri, 14 Dec 2018 17:34:49 +0100 Subject: [PATCH] Import functions in the ArduinoJson namespace to get clearer errors --- CHANGELOG.md | 5 +++++ src/ArduinoJson.hpp | 15 ++++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 246fd9f0..4c1b66c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ ArduinoJson: change log ======================= +HEAD +---- + +* Import functions in the ArduinoJson namespace to get clearer errors + v6.7.0-beta (2018-12-07) ----------- diff --git a/src/ArduinoJson.hpp b/src/ArduinoJson.hpp index e3c10ca7..8c8b318d 100644 --- a/src/ArduinoJson.hpp +++ b/src/ArduinoJson.hpp @@ -28,19 +28,24 @@ #include "ArduinoJson/MsgPack/MsgPackSerializer.hpp" namespace ArduinoJson { -typedef ARDUINOJSON_NAMESPACE::ArrayRef JsonArray; typedef ARDUINOJSON_NAMESPACE::ArrayConstRef JsonArrayConst; +typedef ARDUINOJSON_NAMESPACE::ArrayRef JsonArray; typedef ARDUINOJSON_NAMESPACE::Float JsonFloat; typedef ARDUINOJSON_NAMESPACE::Integer JsonInteger; -typedef ARDUINOJSON_NAMESPACE::ObjectRef JsonObject; typedef ARDUINOJSON_NAMESPACE::ObjectConstRef JsonObjectConst; +typedef ARDUINOJSON_NAMESPACE::ObjectRef JsonObject; typedef ARDUINOJSON_NAMESPACE::Pair JsonPair; -typedef ARDUINOJSON_NAMESPACE::UInt JsonUInt; -typedef ARDUINOJSON_NAMESPACE::VariantRef JsonVariant; -typedef ARDUINOJSON_NAMESPACE::VariantConstRef JsonVariantConst; typedef ARDUINOJSON_NAMESPACE::String JsonString; +typedef ARDUINOJSON_NAMESPACE::UInt JsonUInt; +typedef ARDUINOJSON_NAMESPACE::VariantConstRef JsonVariantConst; +typedef ARDUINOJSON_NAMESPACE::VariantRef JsonVariant; using ARDUINOJSON_NAMESPACE::DeserializationError; +using ARDUINOJSON_NAMESPACE::deserializeJson; +using ARDUINOJSON_NAMESPACE::deserializeMsgPack; using ARDUINOJSON_NAMESPACE::DynamicJsonDocument; using ARDUINOJSON_NAMESPACE::serialized; +using ARDUINOJSON_NAMESPACE::serializeJson; +using ARDUINOJSON_NAMESPACE::serializeJsonPretty; +using ARDUINOJSON_NAMESPACE::serializeMsgPack; using ARDUINOJSON_NAMESPACE::StaticJsonDocument; } // namespace ArduinoJson