diff --git a/sdk/core/azure-core/inc/azure/core/internal/json.hpp b/sdk/core/azure-core/inc/azure/core/internal/json.hpp index 2a3251b4d..3a2e990fc 100644 --- a/sdk/core/azure-core/inc/azure/core/internal/json.hpp +++ b/sdk/core/azure-core/inc/azure/core/internal/json.hpp @@ -83,7 +83,7 @@ SOFTWARE. #include // size_t -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { /// struct to capture the start position of the current token struct position_t { @@ -98,7 +98,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp constexpr operator size_t() const { return chars_read_total; } }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include @@ -2140,7 +2140,7 @@ _az_JSON_HEDLEY_DIAGNOSTIC_PUSH namespace Azure { - namespace Core { namespace _internal { namespace Json { namespace detail { + namespace Core { namespace Json { namespace _internal { namespace detail { //////////////// // exceptions // //////////////// @@ -2551,7 +2551,7 @@ _az_JSON_HEDLEY_DIAGNOSTIC_PUSH { } }; - }}}} // namespace Core::_internal::Json::detail + }}}} // namespace Core::Json::_internal::detail } // namespace Azure // #include @@ -2563,7 +2563,7 @@ _az_JSON_HEDLEY_DIAGNOSTIC_PUSH // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { // alias templates to reduce boilerplate template using enable_if_t = typename std::enable_if::type; @@ -2618,7 +2618,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp }; template constexpr T static_const::value; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include @@ -2634,17 +2634,17 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { template struct make_void { using type = void; }; template using void_t = typename make_void::type; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { template struct iterator_types { }; @@ -2685,7 +2685,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp using pointer = T*; using reference = T&; }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include @@ -2698,7 +2698,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp // #include // https://en.cppreference.com/w/cpp/experimental/is_detected -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { struct nonesuch { nonesuch() = delete; @@ -2740,7 +2740,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp template class Op, class... Args> using is_detected_convertible = std::is_convertible, To>; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail #include // int64_t, uint64_t #include // map @@ -2753,7 +2753,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp @see https://github.com/nlohmann @since version 1.0.0 */ -namespace Azure { namespace Core { namespace _internal { namespace Json { +namespace Azure { namespace Core { namespace Json { namespace _internal { /*! @brief default JSONSerializer template argument @@ -2798,9 +2798,9 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { @since version 1.0.0 */ using json = basic_json<>; -}}}} // namespace Azure::Core::_internal::Json +}}}} // namespace Azure::Core::Json::_internal -namespace Azure { namespace Core { namespace _internal { namespace Json { +namespace Azure { namespace Core { namespace Json { namespace _internal { /*! @brief detail namespace with internal helper functions @@ -3216,7 +3216,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { { }; } // namespace detail -}}}} // namespace Azure::Core::_internal::Json +}}}} // namespace Azure::Core::Json::_internal // #include @@ -3227,7 +3227,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { /////////////////////////// // JSON type enumeration // /////////////////////////// @@ -3301,9 +3301,9 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp const auto r_index = static_cast(rhs); return l_index < order.size() && r_index < order.size() && order[l_index] < order[r_index]; } -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail -namespace Azure { namespace Core { namespace _internal { namespace Json { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { template void from_json(const BasicJsonType& j, typename std::nullptr_t& n) @@ -3725,7 +3725,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namespace { constexpr const auto& from_json = detail::static_const::value; } // namespace -}}}} // namespace Azure::Core::_internal::Json +}}}} // namespace Azure::Core::Json::_internal // #include @@ -3751,7 +3751,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { template void int_to_string(string_type& target, std::size_t value) { target = std::to_string(value); @@ -3856,7 +3856,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp // For further reference see https://blog.tartanllama.xyz/structured-bindings/ // And see https://github.com/nlohmann/json/pull/1391 template = 0> - auto get(const Azure::Core::_internal::Json::detail::iteration_proxy_value& i) + auto get(const Azure::Core::Json::_internal::detail::iteration_proxy_value& i) -> decltype(i.key()) { return i.key(); @@ -3865,12 +3865,12 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp // For further reference see https://blog.tartanllama.xyz/structured-bindings/ // And see https://github.com/nlohmann/json/pull/1391 template = 0> - auto get(const Azure::Core::_internal::Json::detail::iteration_proxy_value& i) + auto get(const Azure::Core::Json::_internal::detail::iteration_proxy_value& i) -> decltype(i.value()) { return i.value(); } -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // The Addition to the STD Namespace is required to add // Structured Bindings Support to the iteration_proxy_value class @@ -3883,17 +3883,17 @@ namespace std { #pragma clang diagnostic ignored "-Wmismatched-tags" #endif template -class tuple_size<::Azure::Core::_internal::Json::detail::iteration_proxy_value> +class tuple_size<::Azure::Core::Json::_internal::detail::iteration_proxy_value> : public std::integral_constant { }; template class tuple_element< N, - ::Azure::Core::_internal::Json::detail::iteration_proxy_value> { + ::Azure::Core::Json::_internal::detail::iteration_proxy_value> { public: using type = decltype(get( - std::declval<::Azure::Core::_internal::Json::detail::iteration_proxy_value>())); + std::declval<::Azure::Core::Json::_internal::detail::iteration_proxy_value>())); }; #if defined(__clang__) #pragma clang diagnostic pop @@ -3906,7 +3906,7 @@ public: // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { ////////////////// // constructors // @@ -4317,9 +4317,9 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namespace { constexpr const auto& to_json = detail::static_const::value; } // namespace -}}}} // namespace Azure::Core::_internal::Json +}}}} // namespace Azure::Core::Json::_internal -namespace Azure { namespace Core { namespace _internal { namespace Json { +namespace Azure { namespace Core { namespace Json { namespace _internal { template struct adl_serializer { @@ -4334,12 +4334,12 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { */ template static auto from_json(BasicJsonType&& j, ValueType& val) noexcept( - noexcept(::Azure::Core::_internal::Json::from_json(std::forward(j), val))) + noexcept(::Azure::Core::Json::_internal::from_json(std::forward(j), val))) -> decltype( - ::Azure::Core::_internal::Json::from_json(std::forward(j), val), + ::Azure::Core::Json::_internal::from_json(std::forward(j), val), void()) { - ::Azure::Core::_internal::Json::from_json(std::forward(j), val); + ::Azure::Core::Json::_internal::from_json(std::forward(j), val); } /*! @@ -4353,16 +4353,16 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { */ template static auto to_json(BasicJsonType& j, ValueType&& val) noexcept( - noexcept(::Azure::Core::_internal::Json::to_json(j, std::forward(val)))) + noexcept(::Azure::Core::Json::_internal::to_json(j, std::forward(val)))) -> decltype( - ::Azure::Core::_internal::Json::to_json(j, std::forward(val)), + ::Azure::Core::Json::_internal::to_json(j, std::forward(val)), void()) { - ::Azure::Core::_internal::Json::to_json(j, std::forward(val)); + ::Azure::Core::Json::_internal::to_json(j, std::forward(val)); } }; -}}}} // namespace Azure::Core::_internal::Json +}}}} // namespace Azure::Core::Json::_internal // #include @@ -4370,7 +4370,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { #include // tie #include // move -namespace Azure { namespace Core { namespace _internal { namespace Json { +namespace Azure { namespace Core { namespace Json { namespace _internal { /*! @brief an internal type for a backed binary type @@ -4517,7 +4517,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { bool m_has_subtype = false; }; -}}}} // namespace Azure::Core::_internal::Json +}}}} // namespace Azure::Core::Json::_internal // #include @@ -4563,7 +4563,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { /// the supported input formats enum class input_format_t { @@ -5006,7 +5006,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp private: contiguous_bytes_input_adapter ia; }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include @@ -5020,12 +5020,12 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { +namespace Azure { namespace Core { namespace Json { namespace _internal { /*! @brief SAX interface - This class describes the SAX interface used by @ref Azure::Core::_internal::Json::json::sax_parse. + This class describes the SAX interface used by @ref Azure::Core::Json::_internal::json::sax_parse. Each function is called in different situations while the input is parsed. The boolean return value informs the parser whether to continue processing the input. @@ -5704,7 +5704,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { }; } // namespace detail -}}}} // namespace Azure::Core::_internal::Json +}}}} // namespace Azure::Core::Json::_internal // #include @@ -5718,7 +5718,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { template using null_function_t = decltype(std::declval().null()); template @@ -5843,11 +5843,11 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp "Missing/invalid function: bool parse_error(std::size_t, const " "std::string&, const exception&)"); }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { /*! @brief determine system byte order @@ -8278,7 +8278,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp /// the SAX parser json_sax_t* sax = nullptr; }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include @@ -8300,7 +8300,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { /////////// // lexer // /////////// @@ -9769,7 +9769,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp /// the decimal point const char_int_type decimal_point_char = '.'; }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include @@ -9795,7 +9795,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { //////////// // parser // //////////// @@ -10285,7 +10285,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp /// whether to throw exceptions in case of errors const bool allow_exceptions = true; }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include @@ -10294,7 +10294,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp #include // ptrdiff_t #include // numeric_limits -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { /* @brief an iterator for primitive JSON types @@ -10390,9 +10390,9 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp return *this; } }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { /*! @brief an iterator value @@ -10410,7 +10410,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp /// generic iterator for all other types primitive_iterator_t primitive_iterator{}; }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include @@ -10433,7 +10433,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { // forward declare, to be able to friend it later on template class iteration_proxy; template class iteration_proxy_value; @@ -11017,7 +11017,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp /// the actual iterator of the associated instance internal_iterator::type> m_it{}; }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include @@ -11027,7 +11027,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp #include // reverse_iterator #include // declval -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { ////////////////////// // reverse_iterator // ////////////////////// @@ -11132,7 +11132,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp return it.operator*(); } }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include @@ -11152,7 +11152,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { +namespace Azure { namespace Core { namespace Json { namespace _internal { template class json_pointer { // allow basic_json to access private members _az_NLOHMANN_BASIC_JSON_TPL_DECLARATION friend class basic_json; @@ -12073,7 +12073,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { /// the reference tokens std::vector reference_tokens; }; -}}}} // namespace Azure::Core::_internal::Json +}}}} // namespace Azure::Core::Json::_internal // #include @@ -12082,7 +12082,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { template class json_ref { public: using value_type = BasicJsonType; @@ -12134,7 +12134,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp value_type* value_ref = nullptr; const bool is_rvalue; }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include @@ -12168,7 +12168,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp #include // vector // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { /// abstract output adapter interface template struct output_adapter_protocol { @@ -12258,9 +12258,9 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp private: output_adapter_t oa = nullptr; }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { /////////////////// // binary writer // /////////////////// @@ -13801,7 +13801,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp /// the output output_adapter_t oa = nullptr; }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include @@ -13836,7 +13836,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { /*! @brief implements the Grisu2 algorithm for binary to decimal floating-point @@ -14903,7 +14903,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp return dtoa_impl::format_buffer(first, len, decimal_exponent, kMinExp, kMaxExp); } -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include @@ -14917,7 +14917,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp // #include -namespace Azure { namespace Core { namespace _internal { namespace Json { namespace detail { +namespace Azure { namespace Core { namespace Json { namespace _internal { namespace detail { /////////////////// // serialization // /////////////////// @@ -15677,7 +15677,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp void dump_float(number_float_t x, std::true_type /*is_ieee_single_or_double*/) { char* begin = number_buffer.data(); - char* end = ::Azure::Core::_internal::Json::detail::to_chars( + char* end = ::Azure::Core::Json::_internal::detail::to_chars( begin, begin + number_buffer.size(), x); o->write_characters(begin, static_cast(end - begin)); @@ -15846,7 +15846,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp /// error_handler how to react on decoding errors const error_handler_t error_handler; }; -}}}}} // namespace Azure::Core::_internal::Json::detail +}}}}} // namespace Azure::Core::Json::_internal::detail // #include @@ -15857,7 +15857,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namesp @see https://github.com/nlohmann @since version 1.0.0 */ -namespace Azure { namespace Core { namespace _internal { namespace Json { +namespace Azure { namespace Core { namespace Json { namespace _internal { /*! @brief a class to store JSON values @@ -15946,66 +15946,66 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { _az_NLOHMANN_BASIC_JSON_TPL_DECLARATION class basic_json { private: template friend struct detail::external_constructor; - friend ::Azure::Core::_internal::Json::json_pointer; + friend ::Azure::Core::Json::_internal::json_pointer; template - friend class ::Azure::Core::_internal::Json::detail::parser; - friend ::Azure::Core::_internal::Json::detail::serializer; + friend class ::Azure::Core::Json::_internal::detail::parser; + friend ::Azure::Core::Json::_internal::detail::serializer; template - friend class ::Azure::Core::_internal::Json::detail::iter_impl; + friend class ::Azure::Core::Json::_internal::detail::iter_impl; template - friend class ::Azure::Core::_internal::Json::detail::binary_writer; + friend class ::Azure::Core::Json::_internal::detail::binary_writer; template - friend class ::Azure::Core::_internal::Json::detail::binary_reader; + friend class ::Azure::Core::Json::_internal::detail::binary_reader; template - friend class ::Azure::Core::_internal::Json::detail::json_sax_dom_parser; + friend class ::Azure::Core::Json::_internal::detail::json_sax_dom_parser; template - friend class ::Azure::Core::_internal::Json::detail::json_sax_dom_callback_parser; + friend class ::Azure::Core::Json::_internal::detail::json_sax_dom_callback_parser; /// workaround type for MSVC using basic_json_t = _az_NLOHMANN_BASIC_JSON_TPL; // convenience aliases for types residing in namespace detail; - using lexer = ::Azure::Core::_internal::Json::detail::lexer_base; + using lexer = ::Azure::Core::Json::_internal::detail::lexer_base; template - static ::Azure::Core::_internal::Json::detail::parser parser( + static ::Azure::Core::Json::_internal::detail::parser parser( InputAdapterType adapter, detail::parser_callback_t cb = nullptr, bool allow_exceptions = true) { - return ::Azure::Core::_internal::Json::detail::parser( + return ::Azure::Core::Json::_internal::detail::parser( std::move(adapter), std::move(cb), allow_exceptions); } - using primitive_iterator_t = ::Azure::Core::_internal::Json::detail::primitive_iterator_t; + using primitive_iterator_t = ::Azure::Core::Json::_internal::detail::primitive_iterator_t; template using internal_iterator - = ::Azure::Core::_internal::Json::detail::internal_iterator; + = ::Azure::Core::Json::_internal::detail::internal_iterator; template - using iter_impl = ::Azure::Core::_internal::Json::detail::iter_impl; + using iter_impl = ::Azure::Core::Json::_internal::detail::iter_impl; template - using iteration_proxy = ::Azure::Core::_internal::Json::detail::iteration_proxy; + using iteration_proxy = ::Azure::Core::Json::_internal::detail::iteration_proxy; template using json_reverse_iterator - = ::Azure::Core::_internal::Json::detail::json_reverse_iterator; + = ::Azure::Core::Json::_internal::detail::json_reverse_iterator; template - using output_adapter_t = ::Azure::Core::_internal::Json::detail::output_adapter_t; + using output_adapter_t = ::Azure::Core::Json::_internal::detail::output_adapter_t; template using binary_reader - = ::Azure::Core::_internal::Json::detail::binary_reader; + = ::Azure::Core::Json::_internal::detail::binary_reader; template using binary_writer - = ::Azure::Core::_internal::Json::detail::binary_writer; + = ::Azure::Core::Json::_internal::detail::binary_writer; - using serializer = ::Azure::Core::_internal::Json::detail::serializer; + using serializer = ::Azure::Core::Json::_internal::detail::serializer; public: using value_t = detail::value_t; /// JSON Pointer, see @ref nlohmann::json_pointer - using json_pointer = ::Azure::Core::_internal::Json::json_pointer; + using json_pointer = ::Azure::Core::Json::_internal::json_pointer; template using json_serializer = JSONSerializer; /// how to treat decoding errors using error_handler_t = detail::error_handler_t; @@ -16013,7 +16013,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { using initializer_list_t = std::initializer_list>; using input_format_t = detail::input_format_t; - /// SAX interface type, see @ref Azure::Core::_internal::Json::json_sax + /// SAX interface type, see @ref Azure::Core::Json::_internal::json_sax using json_sax_t = json_sax; //////////////// @@ -16684,7 +16684,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { @since version 3.8.0 */ - using binary_t = Azure::Core::_internal::Json::byte_container_with_subtype; + using binary_t = Azure::Core::Json::_internal::byte_container_with_subtype; /// @} private: @@ -24344,7 +24344,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { { return j.dump(); } -}}}} // namespace Azure::Core::_internal::Json +}}}} // namespace Azure::Core::Json::_internal /////////////////////// // nonmember support // @@ -24354,17 +24354,17 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { namespace std { /// hash value for JSON objects -template <> struct hash +template <> struct hash { /*! @brief return a hash value for a JSON object @since version 1.0.0 */ - std::size_t operator()(const Azure::Core::_internal::Json::json& j) const + std::size_t operator()(const Azure::Core::Json::_internal::json& j) const { // a naive hashing via the string representation - const auto& h = hash(); + const auto& h = hash(); return h(j.dump()); } }; @@ -24372,17 +24372,17 @@ template <> struct hash /// specialization for std::less /// @note: do not remove the space after '<', /// see https://github.com/nlohmann/json/pull/679 -template <> struct less<::Azure::Core::_internal::Json::detail::value_t> +template <> struct less<::Azure::Core::Json::_internal::detail::value_t> { /*! @brief compare two value_t enum values @since version 3.0.0 */ bool operator()( - Azure::Core::_internal::Json::detail::value_t lhs, - Azure::Core::_internal::Json::detail::value_t rhs) const noexcept + Azure::Core::Json::_internal::detail::value_t lhs, + Azure::Core::Json::_internal::detail::value_t rhs) const noexcept { - return Azure::Core::_internal::Json::detail::operator<(lhs, rhs); + return Azure::Core::Json::_internal::detail::operator<(lhs, rhs); } }; @@ -24392,11 +24392,11 @@ template <> struct less<::Azure::Core::_internal::Json::detail::value_t> @since version 1.0.0 */ template <> -inline void swap( - Azure::Core::_internal::Json::json& j1, - Azure::Core::_internal::Json::json& - j2) noexcept(is_nothrow_move_constructible::value&& - is_nothrow_move_assignable::value) +inline void swap( + Azure::Core::Json::_internal::json& j1, + Azure::Core::Json::_internal::json& + j2) noexcept(is_nothrow_move_constructible::value&& + is_nothrow_move_assignable::value) { j1.swap(j2); } @@ -24417,9 +24417,9 @@ if no parse error occurred. @since version 1.0.0 */ // _az_JSON_HEDLEY_NON_NULL(1) -// inline Azure::Core::_internal::Json::json operator"" _json(const char* s, std::size_t n) +// inline Azure::Core::Json::_internal::json operator"" _json(const char* s, std::size_t n) // { -// return Azure::Core::_internal::Json::json::parse(s, s + n); +// return Azure::Core::Json::_internal::json::parse(s, s + n); // } /*! @@ -24436,11 +24436,11 @@ object if no parse error occurred. @since version 2.0.0 */ // _az_JSON_HEDLEY_NON_NULL(1) -// inline Azure::Core::_internal::Json::json::json_pointer operator"" _json_pointer( +// inline Azure::Core::Json::_internal::json::json_pointer operator"" _json_pointer( // const char* s, // std::size_t n) // { -// return Azure::Core::_internal::Json::json::json_pointer(std::string(s, n)); +// return Azure::Core::Json::_internal::json::json_pointer(std::string(s, n)); // } // #include diff --git a/sdk/core/azure-core/inc/azure/core/internal/json_serializable.hpp b/sdk/core/azure-core/inc/azure/core/internal/json_serializable.hpp index 7bce1a340..eba6f26ab 100644 --- a/sdk/core/azure-core/inc/azure/core/internal/json_serializable.hpp +++ b/sdk/core/azure-core/inc/azure/core/internal/json_serializable.hpp @@ -11,7 +11,7 @@ #include -namespace Azure { namespace Core { namespace _internal { namespace Json { +namespace Azure { namespace Core { namespace Json { namespace _internal { /** * @brief Interface for json-serializable components. @@ -27,4 +27,4 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { virtual std::string Serialize() const = 0; }; -}}}} // namespace Azure::Core::_internal::Json +}}}} // namespace Azure::Core::Json::_internal diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-algorithms.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-algorithms.cpp index 3a52335a1..fb03a61d4 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-algorithms.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-algorithms.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; TEST_CASE("algorithms") { diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-allocator.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-allocator.cpp index c7064c332..12f8212c5 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-allocator.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-allocator.cpp @@ -31,7 +31,7 @@ SOFTWARE. #define private public #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #undef private namespace { @@ -47,7 +47,7 @@ TEST_CASE("bad_alloc") SECTION("bad_alloc") { // create JSON type using the throwing allocator - using bad_json = Azure::Core::_internal::Json::basic_json< + using bad_json = Azure::Core::Json::_internal::basic_json< std::map, std::vector, std::string, @@ -129,7 +129,7 @@ template void my_allocator_clean_up(T* p) TEST_CASE("controlled bad_alloc") { // create JSON type using the throwing allocator - using my_json = Azure::Core::_internal::Json::basic_json< + using my_json = Azure::Core::Json::_internal::basic_json< std::map, std::vector, std::string, @@ -251,7 +251,7 @@ TEST_CASE("bad my_allocator::construct") { SECTION("my_allocator::construct doesn't forward") { - using bad_alloc_json = Azure::Core::_internal::Json::basic_json< + using bad_alloc_json = Azure::Core::Json::_internal::basic_json< std::map, std::vector, std::string, diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-alt-string.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-alt-string.cpp index 8cbc90b3d..5e594a832 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-alt-string.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-alt-string.cpp @@ -103,7 +103,7 @@ void int_to_string(alt_string& target, std::size_t value) target = std::to_string(value).c_str(); } -using alt_json = Azure::Core::_internal::Json::basic_json< +using alt_json = Azure::Core::Json::_internal::basic_json< std::map, std::vector, alt_string, @@ -112,7 +112,7 @@ using alt_json = Azure::Core::_internal::Json::basic_json< std::uint64_t, double, std::allocator, - Azure::Core::_internal::Json::adl_serializer>; + Azure::Core::Json::_internal::adl_serializer>; bool operator<(const char* op1, const alt_string& op2) { return op1 < op2.str_impl; } diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-capacity.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-capacity.cpp index 20a209f7d..d5fa52912 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-capacity.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-capacity.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; TEST_CASE("capacity") { diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-class_const_iterator.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-class_const_iterator.cpp index a7341772e..f5924d260 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-class_const_iterator.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-class_const_iterator.cpp @@ -31,7 +31,7 @@ SOFTWARE. #define private public #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #undef private TEST_CASE("const_iterator class") diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-class_iterator.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-class_iterator.cpp index fc166ce76..e793df7de 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-class_iterator.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-class_iterator.cpp @@ -31,7 +31,7 @@ SOFTWARE. #define private public #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #undef private TEST_CASE("iterator class") diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-class_lexer.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-class_lexer.cpp index 35e01b2c6..9cfe7907e 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-class_lexer.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-class_lexer.cpp @@ -31,7 +31,7 @@ SOFTWARE. #define private public #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #undef private namespace { @@ -39,8 +39,8 @@ namespace { json::lexer::token_type scan_string(const char* s); json::lexer::token_type scan_string(const char* s) { - auto ia = Azure::Core::_internal::Json::detail::input_adapter(s); - return Azure::Core::_internal::Json::detail::lexer(std::move(ia)).scan(); + auto ia = Azure::Core::Json::_internal::detail::input_adapter(s); + return Azure::Core::Json::_internal::detail::lexer(std::move(ia)).scan(); } } // namespace diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-comparison.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-comparison.cpp index 82db73e15..d260d6164 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-comparison.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-comparison.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; namespace { // helper function to check std::less diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-concepts.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-concepts.cpp index 30ae1a8fe..2baeb8759 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-concepts.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-concepts.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; TEST_CASE("concepts") { diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-constructor1.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-constructor1.cpp index 75ec8005e..20ad46a06 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-constructor1.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-constructor1.cpp @@ -32,7 +32,7 @@ DOCTEST_GCC_SUPPRESS_WARNING("-Wfloat-equal") #define private public #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #undef private #include diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-constructor2.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-constructor2.cpp index c13a5e6a4..c5605807d 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-constructor2.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-constructor2.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; TEST_CASE("other constructors and destructor") { diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-convenience.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-convenience.cpp index dfbc4a55b..da22d1ac7 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-convenience.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-convenience.cpp @@ -31,7 +31,7 @@ SOFTWARE. #define private public #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #undef private #include @@ -41,7 +41,7 @@ void check_escaped(const char* original, const char* escaped = "", const bool en void check_escaped(const char* original, const char* escaped, const bool ensure_ascii) { std::stringstream ss; - json::serializer s(Azure::Core::_internal::Json::detail::output_adapter(ss), ' '); + json::serializer s(Azure::Core::Json::_internal::detail::output_adapter(ss), ' '); s.dump_escaped(original, ensure_ascii); CHECK(ss.str() == escaped); } diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-conversions.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-conversions.cpp index 447cdc734..510bc9b03 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-conversions.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-conversions.cpp @@ -31,7 +31,7 @@ SOFTWARE. #define private public #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #undef private #include diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-deserialization.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-deserialization.cpp index 0ca15669e..3b4ced902 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-deserialization.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-deserialization.cpp @@ -30,14 +30,14 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #include #include #include namespace { -struct SaxEventLogger : public Azure::Core::_internal::Json::json_sax +struct SaxEventLogger : public Azure::Core::Json::_internal::json_sax { bool null() override { diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-element_access1.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-element_access1.cpp index 027fa9662..e86b8516f 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-element_access1.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-element_access1.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; TEST_CASE("element access 1") { diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-element_access2.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-element_access2.cpp index 03a740f75..f6fbc4cd2 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-element_access2.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-element_access2.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; TEST_CASE("element access 2") { diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-inspection.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-inspection.cpp index 85426b955..c01d8d607 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-inspection.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-inspection.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #include #include diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-items.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-items.cpp index 3425e1629..84c37952f 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-items.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-items.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #if (defined(__cplusplus) && __cplusplus >= 201703L) \ || (defined(_HAS_CXX17) && _HAS_CXX17 == 1) // fix for issue #464 diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-iterators1.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-iterators1.cpp index 604174dcd..12a2957c3 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-iterators1.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-iterators1.cpp @@ -31,7 +31,7 @@ SOFTWARE. #define private public #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #undef private TEST_CASE("iterators 1") diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-iterators2.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-iterators2.cpp index aa7dc83c8..796563b0e 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-iterators2.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-iterators2.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; TEST_CASE("iterators 2") { diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-large_json.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-large_json.cpp index 895cd2584..d17cb23e0 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-large_json.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-large_json.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #include diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-modifiers.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-modifiers.cpp index d8e4f8b0a..5dff29914 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-modifiers.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-modifiers.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; TEST_CASE("modifiers") { diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-noexcept.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-noexcept.cpp index acfb48fe8..048ee4c84 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-noexcept.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-noexcept.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; namespace { enum test @@ -56,12 +56,12 @@ void from_json(const json&, pod_bis) {} static json* j = nullptr; static_assert(noexcept(json{}), ""); -static_assert(noexcept(Azure::Core::_internal::Json::to_json(*j, 2)), ""); -static_assert(noexcept(Azure::Core::_internal::Json::to_json(*j, 2.5)), ""); -static_assert(noexcept(Azure::Core::_internal::Json::to_json(*j, true)), ""); -static_assert(noexcept(Azure::Core::_internal::Json::to_json(*j, test{})), ""); -static_assert(noexcept(Azure::Core::_internal::Json::to_json(*j, pod{})), ""); -static_assert(not noexcept(Azure::Core::_internal::Json::to_json(*j, pod_bis{})), ""); +static_assert(noexcept(Azure::Core::Json::_internal::to_json(*j, 2)), ""); +static_assert(noexcept(Azure::Core::Json::_internal::to_json(*j, 2.5)), ""); +static_assert(noexcept(Azure::Core::Json::_internal::to_json(*j, true)), ""); +static_assert(noexcept(Azure::Core::Json::_internal::to_json(*j, test{})), ""); +static_assert(noexcept(Azure::Core::Json::_internal::to_json(*j, pod{})), ""); +static_assert(not noexcept(Azure::Core::Json::_internal::to_json(*j, pod_bis{})), ""); static_assert(noexcept(json(2)), ""); static_assert(noexcept(json(test{})), ""); static_assert(noexcept(json(pod{})), ""); diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-pointer_access.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-pointer_access.cpp index 3e43542ef..9577ff669 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-pointer_access.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-pointer_access.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; TEST_CASE("pointer access") { diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-readme.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-readme.cpp index 58605245c..d10fc5258 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-readme.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-readme.cpp @@ -31,7 +31,7 @@ SOFTWARE. DOCTEST_GCC_SUPPRESS_WARNING("-Wfloat-equal") #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #include #include diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-reference_access.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-reference_access.cpp index 547f85367..bb23a2a21 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-reference_access.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-reference_access.cpp @@ -31,7 +31,7 @@ SOFTWARE. DOCTEST_GCC_SUPPRESS_WARNING("-Wfloat-equal") #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; TEST_CASE("reference access") { diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-serialization.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-serialization.cpp index 5ae88cb67..f33fae3e0 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-serialization.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-serialization.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #include #include diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-testsuites.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-testsuites.cpp index dcfc648a8..f3f633169 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-testsuites.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-testsuites.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #include #include diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-to_chars.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-to_chars.cpp index 2c714f5bf..8f3394981 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-to_chars.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-to_chars.cpp @@ -34,7 +34,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::detail::dtoa_impl::reinterpret_bits; +using Azure::Core::Json::_internal::detail::dtoa_impl::reinterpret_bits; namespace { static float make_float(uint32_t sign_bit, uint32_t biased_exponent, uint32_t significand) @@ -154,7 +154,7 @@ TEST_CASE("digit gen") char buf[32]; int len = 0; int exponent = 0; - Azure::Core::_internal::Json::detail::dtoa_impl::grisu2(buf, len, exponent, number); + Azure::Core::Json::_internal::detail::dtoa_impl::grisu2(buf, len, exponent, number); CHECK(digits == std::string(buf, buf + len)); CHECK(expected_exponent == exponent); @@ -229,7 +229,7 @@ TEST_CASE("digit gen") char buf[32]; int len = 0; int exponent = 0; - Azure::Core::_internal::Json::detail::dtoa_impl::grisu2(buf, len, exponent, number); + Azure::Core::Json::_internal::detail::dtoa_impl::grisu2(buf, len, exponent, number); CHECK(digits == std::string(buf, buf + len)); CHECK(expected_exponent == exponent); @@ -528,7 +528,7 @@ TEST_CASE("formatting") auto check_float = [](float number, const std::string& expected) { std::array buf{}; char* end - = Azure::Core::_internal::Json::detail::to_chars(buf.data(), buf.data() + 32, number); + = Azure::Core::Json::_internal::detail::to_chars(buf.data(), buf.data() + 32, number); std::string actual(buf.data(), end); CHECK(actual == expected); @@ -588,7 +588,7 @@ TEST_CASE("formatting") auto check_double = [](double number, const std::string& expected) { std::array buf{}; char* end - = Azure::Core::_internal::Json::detail::to_chars(buf.data(), buf.data() + 32, number); + = Azure::Core::Json::_internal::detail::to_chars(buf.data(), buf.data() + 32, number); std::string actual(buf.data(), end); CHECK(actual == expected); @@ -677,7 +677,7 @@ TEST_CASE("formatting") SECTION("integer") { auto check_integer = [](std::int64_t number, const std::string& expected) { - Azure::Core::_internal::Json::json j = number; + Azure::Core::Json::_internal::json j = number; CHECK(j.dump() == expected); }; diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-udt.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-udt.cpp index 9d50f8c2c..6cb1f00d5 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-udt.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-udt.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #include #include @@ -122,14 +122,14 @@ template static void to_json(BasicJsonType& j, const pe j = BasicJsonType{{"age", p.m_age}, {"name", p.m_name}, {"country", p.m_country}}; } -static void to_json(Azure::Core::_internal::Json::json& j, const address& a) { j = a.m_val; } +static void to_json(Azure::Core::Json::_internal::json& j, const address& a) { j = a.m_val; } -static void to_json(Azure::Core::_internal::Json::json& j, const contact& c) +static void to_json(Azure::Core::Json::_internal::json& j, const contact& c) { j = json{{"person", c.m_person}, {"address", c.m_address}}; } -static void to_json(Azure::Core::_internal::Json::json& j, const contact_book& cb) +static void to_json(Azure::Core::Json::_internal::json& j, const contact_book& cb) { j = json{{"name", cb.m_book_name}, {"contacts", cb.m_contacts}}; } @@ -189,18 +189,18 @@ template static void from_json(const BasicJsonType& j, p.m_country = j["country"].template get(); } -static void from_json(const Azure::Core::_internal::Json::json& j, address& a) +static void from_json(const Azure::Core::Json::_internal::json& j, address& a) { a.m_val = j.get(); } -static void from_json(const Azure::Core::_internal::Json::json& j, contact& c) +static void from_json(const Azure::Core::Json::_internal::json& j, contact& c) { c.m_person = j["person"].get(); c.m_address = j["address"].get
(); } -static void from_json(const Azure::Core::_internal::Json::json& j, contact_book& cb) +static void from_json(const Azure::Core::Json::_internal::json& j, contact_book& cb) { cb.m_book_name = j["name"].get(); cb.m_contacts = j["contacts"].get>(); @@ -230,7 +230,7 @@ struct legacy_type }; } // namespace udt -namespace Azure { namespace Core { namespace _internal { namespace Json { +namespace Azure { namespace Core { namespace Json { namespace _internal { template struct adl_serializer> { static void to_json(json& j, const std::shared_ptr& opt) @@ -267,7 +267,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { l.number = std::to_string(j.get()); } }; -}}}} // namespace Azure::Core::_internal::Json +}}}} // namespace Azure::Core::Json::_internal TEST_CASE("adl_serializer specialization" * doctest::test_suite("udt")) { @@ -321,7 +321,7 @@ TEST_CASE("adl_serializer specialization" * doctest::test_suite("udt")) } } -namespace Azure { namespace Core { namespace _internal { namespace Json { +namespace Azure { namespace Core { namespace Json { namespace _internal { template <> struct adl_serializer> { using type = std::vector; @@ -332,7 +332,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { // preferred version static type from_json(const json&) { return {4.0, 5.0, 6.0}; } }; -}}}} // namespace Azure::Core::_internal::Json +}}}} // namespace Azure::Core::Json::_internal TEST_CASE("even supported types can be specialized" * doctest::test_suite("udt")) { @@ -343,7 +343,7 @@ TEST_CASE("even supported types can be specialized" * doctest::test_suite("udt") CHECK((f == std::vector{4.0, 5.0, 6.0})); } -namespace Azure { namespace Core { namespace _internal { namespace Json { +namespace Azure { namespace Core { namespace Json { namespace _internal { template struct adl_serializer> { static void to_json(json& j, const std::unique_ptr& opt) @@ -371,7 +371,7 @@ namespace Azure { namespace Core { namespace _internal { namespace Json { } } }; -}}}} // namespace Azure::Core::_internal::Json +}}}} // namespace Azure::Core::Json::_internal TEST_CASE("Non-copyable types" * doctest::test_suite("udt")) { @@ -417,7 +417,7 @@ template struct pod_serializer = 0> static void from_json(const BasicJsonType& j, U& t) { - using Azure::Core::_internal::Json::from_json; + using Azure::Core::Json::_internal::from_json; from_json(j, t); } @@ -436,7 +436,7 @@ template struct pod_serializer // Why cannot we simply use: j.get() ? // Well, with the current experiment, the get method looks for a from_json // function, which we are currently defining! - // This would end up in a stack overflow. Calling Azure::Core::_internal::Json::from_json is a + // This would end up in a stack overflow. Calling Azure::Core::Json::_internal::from_json is a // workaround (is it?). // I shall find a good way to avoid this once all constructors are converted // to free methods @@ -444,7 +444,7 @@ template struct pod_serializer // In short, constructing a json by constructor calls to_json // calling get calls from_json, for now, we cannot do this in custom // serializers - Azure::Core::_internal::Json::from_json(j, value); + Azure::Core::Json::_internal::from_json(j, value); auto bytes = static_cast(static_cast(&value)); std::memcpy(&t, bytes, sizeof(value)); } @@ -456,7 +456,7 @@ template struct pod_serializer = 0> static void to_json(BasicJsonType& j, const T& t) { - using Azure::Core::_internal::Json::to_json; + using Azure::Core::Json::_internal::to_json; to_json(j, t); } @@ -469,7 +469,7 @@ template struct pod_serializer auto bytes = static_cast(static_cast(&t)); std::uint64_t value; std::memcpy(&value, bytes, sizeof(value)); - Azure::Core::_internal::Json::to_json(j, value); + Azure::Core::Json::_internal::to_json(j, value); } }; @@ -513,7 +513,7 @@ static std::ostream& operator<<(std::ostream& os, small_pod l) TEST_CASE("custom serializer for pods" * doctest::test_suite("udt")) { - using custom_json = Azure::Core::_internal::Json::basic_json< + using custom_json = Azure::Core::Json::_internal::basic_json< std::map, std::vector, std::string, @@ -539,7 +539,7 @@ TEST_CASE("custom serializer for pods" * doctest::test_suite("udt")) template struct another_adl_serializer; -using custom_json = Azure::Core::_internal::Json::basic_json< +using custom_json = Azure::Core::Json::_internal::basic_json< std::map, std::vector, std::string, @@ -554,13 +554,13 @@ template struct another_adl_serializer { static void from_json(const custom_json& j, T& t) { - using Azure::Core::_internal::Json::from_json; + using Azure::Core::Json::_internal::from_json; from_json(j, t); } static void to_json(custom_json& j, const T& t) { - using Azure::Core::_internal::Json::to_json; + using Azure::Core::Json::_internal::to_json; to_json(j, t); } }; diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-user_defined_input.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-user_defined_input.cpp index 0ddf64be4..229bf8c90 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-user_defined_input.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-user_defined_input.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; #include diff --git a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-wstring.cpp b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-wstring.cpp index 97b11398e..4f9f7f055 100644 --- a/sdk/core/azure-core/test/nlohmann-json-test/src/unit-wstring.cpp +++ b/sdk/core/azure-core/test/nlohmann-json-test/src/unit-wstring.cpp @@ -30,7 +30,7 @@ SOFTWARE. #include "doctest_compatibility.h" #include -using Azure::Core::_internal::Json::json; +using Azure::Core::Json::_internal::json; namespace { bool wstring_is_utf16(); diff --git a/sdk/core/azure-core/test/ut/json.cpp b/sdk/core/azure-core/test/ut/json.cpp index 9c2abd1b2..931d88723 100644 --- a/sdk/core/azure-core/test/ut/json.cpp +++ b/sdk/core/azure-core/test/ut/json.cpp @@ -4,7 +4,7 @@ #include #include -using json = Azure::Core::_internal::Json::json; +using json = Azure::Core::Json::_internal::json; // Just a simple test to ensure that Azure Core internal is wrapping nlohmann json TEST(Json, create) diff --git a/sdk/core/perf/inc/azure/perf/options.hpp b/sdk/core/perf/inc/azure/perf/options.hpp index eced8f059..7cf5da27e 100644 --- a/sdk/core/perf/inc/azure/perf/options.hpp +++ b/sdk/core/perf/inc/azure/perf/options.hpp @@ -105,7 +105,7 @@ namespace Azure { namespace Perf { }; /** - * @brief Define a #Azure::Core::_internal::Json::json to + * @brief Define a #Azure::Core::Json::_internal::json to * Azure::Perf::GlobalTestOptions convertion. * * @remark The Json library consumes this implementation for parsing @@ -114,5 +114,5 @@ namespace Azure { namespace Perf { * @param j A Json reference to be written. * @param p A #Azure::Perf::GlobalTestOptions reference to be parsed. */ - void to_json(Azure::Core::_internal::Json::json& j, const GlobalTestOptions& p); + void to_json(Azure::Core::Json::_internal::json& j, const GlobalTestOptions& p); }} // namespace Azure::Perf diff --git a/sdk/core/perf/src/options.cpp b/sdk/core/perf/src/options.cpp index 46205742e..b78939186 100644 --- a/sdk/core/perf/src/options.cpp +++ b/sdk/core/perf/src/options.cpp @@ -5,9 +5,9 @@ #include -void Azure::Perf::to_json(Azure::Core::_internal::Json::json& j, const GlobalTestOptions& p) +void Azure::Perf::to_json(Azure::Core::Json::_internal::json& j, const GlobalTestOptions& p) { - j = Azure::Core::_internal::Json::json{ + j = Azure::Core::Json::_internal::json{ {"Duration", p.Duration}, {"Host", p.Host}, {"Insecure", p.Insecure}, diff --git a/sdk/core/perf/src/program.cpp b/sdk/core/perf/src/program.cpp index ccc1eba08..b8eb804a3 100644 --- a/sdk/core/perf/src/program.cpp +++ b/sdk/core/perf/src/program.cpp @@ -70,14 +70,14 @@ inline void PrintOptions( { { std::cout << std::endl << "=== Global Options ===" << std::endl; - Azure::Core::_internal::Json::json optionsAsJson = options; + Azure::Core::Json::_internal::json optionsAsJson = options; std::cout << ReplaceAll(optionsAsJson.dump(), ",", ",\n") << std::endl; } if (testOptions.size() > 0) { std::cout << std::endl << "=== Test Options ===" << std::endl; - Azure::Core::_internal::Json::json optionsAsJson; + Azure::Core::Json::_internal::json optionsAsJson; for (auto option : testOptions) { try diff --git a/sdk/keyvault/azure-security-keyvault-common/inc/azure/keyvault/common/internal/keyvault_pipeline.hpp b/sdk/keyvault/azure-security-keyvault-common/inc/azure/keyvault/common/internal/keyvault_pipeline.hpp index 4d6a63578..8dab63962 100644 --- a/sdk/keyvault/azure-security-keyvault-common/inc/azure/keyvault/common/internal/keyvault_pipeline.hpp +++ b/sdk/keyvault/azure-security-keyvault-common/inc/azure/keyvault/common/internal/keyvault_pipeline.hpp @@ -119,7 +119,7 @@ namespace Azure { namespace Security { namespace KeyVault { namespace Common { n Azure::Response SendRequest( Azure::Core::Context const& context, Azure::Core::Http::HttpMethod method, - Azure::Core::_internal::Json::JsonSerializable const& content, + Azure::Core::Json::_internal::JsonSerializable const& content, std::function factoryFn, std::vector const& path) { diff --git a/sdk/keyvault/azure-security-keyvault-common/src/keyvault_exception.cpp b/sdk/keyvault/azure-security-keyvault-common/src/keyvault_exception.cpp index 664e44839..c63cd45cc 100644 --- a/sdk/keyvault/azure-security-keyvault-common/src/keyvault_exception.cpp +++ b/sdk/keyvault/azure-security-keyvault-common/src/keyvault_exception.cpp @@ -49,7 +49,7 @@ KeyVaultException KeyVaultException::CreateFromResponse( if (contentType.find("json") != std::string::npos) { - auto jsonParser = Azure::Core::_internal::Json::json::parse(bodyBuffer); + auto jsonParser = Azure::Core::Json::_internal::json::parse(bodyBuffer); auto& error = jsonParser["error"]; errorCode = error["code"].get(); message = error["message"].get(); diff --git a/sdk/keyvault/azure-security-keyvault-keys/inc/azure/keyvault/keys/details/key_request_parameters.hpp b/sdk/keyvault/azure-security-keyvault-keys/inc/azure/keyvault/keys/details/key_request_parameters.hpp index f89bdf50d..bc4cdda04 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/inc/azure/keyvault/keys/details/key_request_parameters.hpp +++ b/sdk/keyvault/azure-security-keyvault-keys/inc/azure/keyvault/keys/details/key_request_parameters.hpp @@ -23,7 +23,7 @@ namespace Azure { namespace Security { namespace KeyVault { namespace Keys { namespace _detail { - class KeyRequestParameters : public Azure::Core::_internal::Json::JsonSerializable { + class KeyRequestParameters : public Azure::Core::Json::_internal::JsonSerializable { private: JsonWebKeyType m_keyType; CreateKeyOptions const& m_options; diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/deleted_key.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/deleted_key.cpp index 53d09907d..9bca9c4eb 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/deleted_key.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/deleted_key.cpp @@ -17,7 +17,7 @@ DeletedKey _detail::DeletedKeyDeserialize( Azure::Core::Http::RawResponse const& rawResponse) { auto body = rawResponse.GetBody(); - auto jsonParser = Azure::Core::_internal::Json::json::parse(body); + auto jsonParser = Azure::Core::Json::_internal::json::parse(body); // "Key" DeletedKey deletedKey(name); diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/key_request_parameters.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/key_request_parameters.cpp index b45e88682..030cedf8e 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/key_request_parameters.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/key_request_parameters.cpp @@ -13,7 +13,7 @@ using namespace Azure::Security::KeyVault::Keys::_detail; std::string KeyRequestParameters::Serialize() const { - Azure::Core::_internal::Json::json payload; + Azure::Core::Json::_internal::json payload; /* Mandatory */ // kty payload[_detail::KeyTypePropertyName] = KeyTypeToString(m_keyType); diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/key_vault_key.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/key_vault_key.cpp index 0ef707ffc..783a6db41 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/key_vault_key.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/key_vault_key.cpp @@ -38,7 +38,7 @@ void _detail::KeyVaultKeyDeserialize( Azure::Core::Http::RawResponse const& rawResponse) { auto body = rawResponse.GetBody(); - auto jsonParser = Azure::Core::_internal::Json::json::parse(body); + auto jsonParser = Azure::Core::Json::_internal::json::parse(body); // "Key" auto const& jsonKey = jsonParser[_detail::KeyPropertyName]; diff --git a/sdk/storage/azure-storage-common/src/storage_exception.cpp b/sdk/storage/azure-storage-common/src/storage_exception.cpp index 56a97eded..282c6d48c 100644 --- a/sdk/storage/azure-storage-common/src/storage_exception.cpp +++ b/sdk/storage/azure-storage-common/src/storage_exception.cpp @@ -129,7 +129,7 @@ namespace Azure { namespace Storage { response->GetHeaders().at(_detail::HttpHeaderContentType).find("json") != std::string::npos) { - auto jsonParser = Azure::Core::_internal::Json::json::parse(bodyBuffer); + auto jsonParser = Azure::Core::Json::_internal::json::parse(bodyBuffer); errorCode = jsonParser["error"]["code"].get(); message = jsonParser["error"]["message"].get(); } diff --git a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/protocol/datalake_rest_client.hpp b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/protocol/datalake_rest_client.hpp index 0f15a0d0e..73823d0fd 100644 --- a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/protocol/datalake_rest_client.hpp +++ b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/protocol/datalake_rest_client.hpp @@ -474,7 +474,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { FileSystemListPathsResult result = bodyBuffer.empty() ? FileSystemListPathsResult() : FileSystemListPathsResultFromPathList( - PathListFromJson(Azure::Core::_internal::Json::json::parse(bodyBuffer))); + PathListFromJson(Azure::Core::Json::_internal::json::parse(bodyBuffer))); result.RequestId = response.GetHeaders().at(_detail::HeaderRequestId); if (response.GetHeaders().find(_detail::HeaderContinuationToken) != response.GetHeaders().end()) @@ -491,7 +491,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { } } - static PathItem PathItemFromJson(const Azure::Core::_internal::Json::json& node) + static PathItem PathItemFromJson(const Azure::Core::Json::_internal::json& node) { PathItem result; result.Name = node["name"].get(); @@ -512,7 +512,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { return result; } - static PathList PathListFromJson(const Azure::Core::_internal::Json::json& node) + static PathList PathListFromJson(const Azure::Core::Json::_internal::json& node) { PathList result; for (const auto& element : node["paths"]) @@ -1376,7 +1376,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { ? PathSetAccessControlRecursiveResult() : PathSetAccessControlRecursiveResultFromSetAccessControlRecursiveResponse( SetAccessControlRecursiveResponseFromJson( - Azure::Core::_internal::Json::json::parse(bodyBuffer))); + Azure::Core::Json::_internal::json::parse(bodyBuffer))); if (response.GetHeaders().find(_detail::HeaderContinuationToken) != response.GetHeaders().end()) { @@ -1393,7 +1393,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { } } - static AclFailedEntry AclFailedEntryFromJson(const Azure::Core::_internal::Json::json& node) + static AclFailedEntry AclFailedEntryFromJson(const Azure::Core::Json::_internal::json& node) { AclFailedEntry result; result.Name = node["name"].get(); @@ -1403,7 +1403,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { } static SetAccessControlRecursiveResponse SetAccessControlRecursiveResponseFromJson( - const Azure::Core::_internal::Json::json& node) + const Azure::Core::Json::_internal::json& node) { SetAccessControlRecursiveResponse result; result.NumberOfSuccessfulDirectories = node["directoriesSuccessful"].get(); diff --git a/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/protocol/share_rest_client.hpp b/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/protocol/share_rest_client.hpp index 4016f72f4..248e24c2e 100644 --- a/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/protocol/share_rest_client.hpp +++ b/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/protocol/share_rest_client.hpp @@ -2921,7 +2921,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { std::string json_body; { - Azure::Core::_internal::Json::json json; + Azure::Core::Json::_internal::json json; SharePermissionToJson(json, createPermissionOptions.Permission); json_body = json.dump(); } @@ -3508,7 +3508,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { } static void SharePermissionToJson( - Azure::Core::_internal::Json::json& node, + Azure::Core::Json::_internal::json& node, const SharePermission& object) { node["permission"] = object.FilePermission; @@ -3526,7 +3526,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { ShareGetPermissionResult result = bodyBuffer.empty() ? ShareGetPermissionResult() : ShareGetPermissionResultFromSharePermission( - SharePermissionFromJson(Azure::Core::_internal::Json::json::parse(bodyBuffer))); + SharePermissionFromJson(Azure::Core::Json::_internal::json::parse(bodyBuffer))); result.RequestId = response.GetHeaders().at(_detail::HeaderRequestId); return Azure::Response( std::move(result), std::move(responsePtr)); @@ -3539,7 +3539,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { } static SharePermission SharePermissionFromJson( - const Azure::Core::_internal::Json::json& node) + const Azure::Core::Json::_internal::json& node) { SharePermission result; result.FilePermission = node["permission"].get();