ArduinoJson.hpp 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. // ArduinoJson - https://arduinojson.org
  2. // Copyright © 2014-2022, Benoit BLANCHON
  3. // MIT License
  4. #pragma once
  5. #include "ArduinoJson/Configuration.hpp"
  6. // Include Arduino.h before stdlib.h to avoid conflict with atexit()
  7. // https://github.com/bblanchon/ArduinoJson/pull/1693#issuecomment-1001060240
  8. #if ARDUINOJSON_ENABLE_ARDUINO_STRING || ARDUINOJSON_ENABLE_ARDUINO_STREAM || \
  9. ARDUINOJSON_ENABLE_ARDUINO_PRINT || ARDUINOJSON_ENABLE_PROGMEM
  10. # include <Arduino.h>
  11. #endif
  12. #if !ARDUINOJSON_DEBUG
  13. # ifdef __clang__
  14. # pragma clang system_header
  15. # elif defined __GNUC__
  16. # pragma GCC system_header
  17. # endif
  18. #endif
  19. #include "ArduinoJson/Array/ArrayRef.hpp"
  20. #include "ArduinoJson/Object/ObjectRef.hpp"
  21. #include "ArduinoJson/Variant/VariantRef.hpp"
  22. #include "ArduinoJson/Document/DynamicJsonDocument.hpp"
  23. #include "ArduinoJson/Document/StaticJsonDocument.hpp"
  24. #include "ArduinoJson/Array/ArrayImpl.hpp"
  25. #include "ArduinoJson/Array/ElementProxy.hpp"
  26. #include "ArduinoJson/Array/Utilities.hpp"
  27. #include "ArduinoJson/Collection/CollectionImpl.hpp"
  28. #include "ArduinoJson/Object/MemberProxy.hpp"
  29. #include "ArduinoJson/Object/ObjectImpl.hpp"
  30. #include "ArduinoJson/Variant/ConverterImpl.hpp"
  31. #include "ArduinoJson/Variant/VariantCompare.hpp"
  32. #include "ArduinoJson/Variant/VariantImpl.hpp"
  33. #include "ArduinoJson/Json/JsonDeserializer.hpp"
  34. #include "ArduinoJson/Json/JsonSerializer.hpp"
  35. #include "ArduinoJson/Json/PrettyJsonSerializer.hpp"
  36. #include "ArduinoJson/MsgPack/MsgPackDeserializer.hpp"
  37. #include "ArduinoJson/MsgPack/MsgPackSerializer.hpp"
  38. #include "ArduinoJson/compatibility.hpp"
  39. namespace ArduinoJson {
  40. typedef ARDUINOJSON_NAMESPACE::ArrayConstRef JsonArrayConst;
  41. typedef ARDUINOJSON_NAMESPACE::ArrayRef JsonArray;
  42. typedef ARDUINOJSON_NAMESPACE::Float JsonFloat;
  43. typedef ARDUINOJSON_NAMESPACE::Integer JsonInteger;
  44. typedef ARDUINOJSON_NAMESPACE::ObjectConstRef JsonObjectConst;
  45. typedef ARDUINOJSON_NAMESPACE::ObjectRef JsonObject;
  46. typedef ARDUINOJSON_NAMESPACE::Pair JsonPair;
  47. typedef ARDUINOJSON_NAMESPACE::PairConst JsonPairConst;
  48. typedef ARDUINOJSON_NAMESPACE::String JsonString;
  49. typedef ARDUINOJSON_NAMESPACE::UInt JsonUInt;
  50. typedef ARDUINOJSON_NAMESPACE::VariantConstRef JsonVariantConst;
  51. typedef ARDUINOJSON_NAMESPACE::VariantRef JsonVariant;
  52. using ARDUINOJSON_NAMESPACE::BasicJsonDocument;
  53. using ARDUINOJSON_NAMESPACE::copyArray;
  54. using ARDUINOJSON_NAMESPACE::DeserializationError;
  55. using ARDUINOJSON_NAMESPACE::deserializeJson;
  56. using ARDUINOJSON_NAMESPACE::deserializeMsgPack;
  57. using ARDUINOJSON_NAMESPACE::DynamicJsonDocument;
  58. using ARDUINOJSON_NAMESPACE::JsonDocument;
  59. using ARDUINOJSON_NAMESPACE::measureJson;
  60. using ARDUINOJSON_NAMESPACE::serialized;
  61. using ARDUINOJSON_NAMESPACE::serializeJson;
  62. using ARDUINOJSON_NAMESPACE::serializeJsonPretty;
  63. using ARDUINOJSON_NAMESPACE::serializeMsgPack;
  64. using ARDUINOJSON_NAMESPACE::StaticJsonDocument;
  65. namespace DeserializationOption {
  66. using ARDUINOJSON_NAMESPACE::Filter;
  67. using ARDUINOJSON_NAMESPACE::NestingLimit;
  68. } // namespace DeserializationOption
  69. } // namespace ArduinoJson