| 8 | #include <ArduinoJson/Document/JsonDocument.hpp> |
| 9 | |
| 10 | ARDUINOJSON_BEGIN_PUBLIC_NAMESPACE |
| 11 | |
| 12 | // Copies a value to a JsonVariant. |
| 13 | // This is a degenerated form of copyArray() to stop the recursion. |
| 14 | template <typename T, detail::enable_if_t<!detail::is_array<T>::value, int> = 0> |
| 15 | inline bool copyArray(const T& src, JsonVariant dst) { |
| 16 | return dst.set(src); |
| 17 | } |
| 18 | |
| 19 | // Copies values from an array to a JsonArray or a JsonVariant. |
| 20 | // https://arduinojson.org/v7/api/misc/copyarray/ |