Lines Matching full:basic_json
97 class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-special-member-function… class
110 friend ::nlohmann::detail::serializer<basic_json>;
129 using lexer = ::nlohmann::detail::lexer_base<basic_json>;
132 static ::nlohmann::detail::parser<basic_json, InputAdapterType> parser( in parser()
134 detail::parser_callback_t<basic_json>cb = nullptr, in parser()
139 return ::nlohmann::detail::parser<basic_json, InputAdapterType>(std::move(adapter), in parser()
157 using binary_reader = ::nlohmann::detail::binary_reader<basic_json, InputType>;
158 …template<typename CharType> using binary_writer = ::nlohmann::detail::binary_writer<basic_json, Ch…
161 using serializer = ::nlohmann::detail::serializer<basic_json>;
173 /// helper type for initializer lists of basic_json values
174 using initializer_list_t = std::initializer_list<detail::json_ref<basic_json>>;
178 using json_sax_t = json_sax<basic_json>;
202 /// The canonic container types to use @ref basic_json like any other STL
206 /// the type of elements in a basic_json container
207 using value_type = basic_json;
220 using allocator_type = AllocatorType<basic_json>;
227 /// an iterator for a basic_json container
228 using iterator = iter_impl<basic_json>;
229 /// a const iterator for a basic_json container
230 using const_iterator = iter_impl<const basic_json>;
231 /// a reverse iterator for a basic_json container
232 using reverse_iterator = json_reverse_iterator<typename basic_json::iterator>;
233 /// a const reverse iterator for a basic_json container
234 using const_reverse_iterator = json_reverse_iterator<typename basic_json::const_iterator>;
239 /// @sa https://json.nlohmann.me/api/basic_json/get_allocator/
246 /// @sa https://json.nlohmann.me/api/basic_json/meta/
248 static basic_json meta() in meta()
250 basic_json result; in meta()
316 /// the template arguments passed to class @ref basic_json.
322 /// @sa https://json.nlohmann.me/api/basic_json/default_object_comparator_t/
332 /// @sa https://json.nlohmann.me/api/basic_json/object_t/
334 basic_json,
337 basic_json>>>;
340 /// @sa https://json.nlohmann.me/api/basic_json/array_t/
341 using array_t = ArrayType<basic_json, AllocatorType<basic_json>>;
344 /// @sa https://json.nlohmann.me/api/basic_json/string_t/
348 /// @sa https://json.nlohmann.me/api/basic_json/boolean_t/
352 /// @sa https://json.nlohmann.me/api/basic_json/number_integer_t/
356 /// @sa https://json.nlohmann.me/api/basic_json/number_unsigned_t/
360 /// @sa https://json.nlohmann.me/api/basic_json/number_float_t/
364 /// @sa https://json.nlohmann.me/api/basic_json/binary_t/
368 /// @sa https://json.nlohmann.me/api/basic_json/object_comparator_t/
369 using object_comparator_t = detail::actual_object_comparator_t<basic_json>;
401 The actual storage for a JSON value of the @ref basic_json class. This
569 std::vector<basic_json> stack; in destroy()
589 basic_json current_item(std::move(stack.back())); in destroy()
693 …SERT(!check_parents || !is_structured() || std::all_of(begin(), end(), [this](const basic_json & j) in assert_invariant()
797 /// @sa https://json.nlohmann.me/api/basic_json/parse_event_t/
801 /// @sa https://json.nlohmann.me/api/basic_json/parser_callback_t/
802 using parser_callback_t = detail::parser_callback_t<basic_json>;
809 /// Constructors of class @ref basic_json, copy/move constructor, copy
814 /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
815 basic_json(const value_t v) in basic_json() function in basic_json
822 /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
823 basic_json(std::nullptr_t = nullptr) noexcept // NOLINT(bugprone-exception-escape) in basic_json() function in basic_json
824 : basic_json(value_t::null) in basic_json()
830 /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
835 …basic_json(CompatibleType && val) noexcept(noexcept( // NOLINT(bugprone-forwarding-reference-overl… in basic_json() function in basic_json
845 /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
848 …detail::is_basic_json<BasicJsonType>::value&& !std::is_same<basic_json, BasicJsonType>::value, int…
849 basic_json(const BasicJsonType& val) in basic_json() function in basic_json
901 /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
902 basic_json(initializer_list_t init, in basic_json() function in basic_json
909 [](const detail::json_ref<basic_json>& element_ref) in basic_json()
959 /// @sa https://json.nlohmann.me/api/basic_json/binary/
961 static basic_json binary(const typename binary_t::container_type& init) in binary()
963 auto res = basic_json(); in binary()
970 /// @sa https://json.nlohmann.me/api/basic_json/binary/
972 …static basic_json binary(const typename binary_t::container_type& init, typename binary_t::subtype… in binary()
974 auto res = basic_json(); in binary()
981 /// @sa https://json.nlohmann.me/api/basic_json/binary/
983 static basic_json binary(typename binary_t::container_type&& init) in binary()
985 auto res = basic_json(); in binary()
992 /// @sa https://json.nlohmann.me/api/basic_json/binary/
994 …static basic_json binary(typename binary_t::container_type&& init, typename binary_t::subtype_type… in binary()
996 auto res = basic_json(); in binary()
1003 /// @sa https://json.nlohmann.me/api/basic_json/array/
1005 static basic_json array(initializer_list_t init = {}) in array()
1007 return basic_json(init, false, value_t::array);
1011 /// @sa https://json.nlohmann.me/api/basic_json/object/
1013 static basic_json object(initializer_list_t init = {}) in object()
1015 return basic_json(init, false, value_t::object);
1019 /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
1020 basic_json(size_type cnt, const basic_json& val): in basic_json() function in basic_json
1028 /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
1032 basic_json(InputIT first, InputIT last) in basic_json() function in basic_json
1140 … std::is_same<typename JsonRef::value_type, basic_json>>::value, int> = 0 >
1141 basic_json(const JsonRef& ref) : basic_json(ref.moved_or_copied()) {} in basic_json() function in basic_json
1144 /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
1145 basic_json(const basic_json& other) in basic_json() function in basic_json
1213 /// @sa https://json.nlohmann.me/api/basic_json/basic_json/
1214 basic_json(basic_json&& other) noexcept in basic_json() function in basic_json
1230 /// @sa https://json.nlohmann.me/api/basic_json/operator=/
1231 basic_json& operator=(basic_json other) noexcept ( in operator =()
1253 /// @sa https://json.nlohmann.me/api/basic_json/~basic_json/
1254 ~basic_json() noexcept in ~basic_json()
1271 /// @sa https://json.nlohmann.me/api/basic_json/dump/
1293 /// @sa https://json.nlohmann.me/api/basic_json/type/
1300 /// @sa https://json.nlohmann.me/api/basic_json/is_primitive/
1307 /// @sa https://json.nlohmann.me/api/basic_json/is_structured/
1314 /// @sa https://json.nlohmann.me/api/basic_json/is_null/
1321 /// @sa https://json.nlohmann.me/api/basic_json/is_boolean/
1328 /// @sa https://json.nlohmann.me/api/basic_json/is_number/
1335 /// @sa https://json.nlohmann.me/api/basic_json/is_number_integer/
1342 /// @sa https://json.nlohmann.me/api/basic_json/is_number_unsigned/
1349 /// @sa https://json.nlohmann.me/api/basic_json/is_number_float/
1356 /// @sa https://json.nlohmann.me/api/basic_json/is_object/
1363 /// @sa https://json.nlohmann.me/api/basic_json/is_array/
1370 /// @sa https://json.nlohmann.me/api/basic_json/is_string/
1377 /// @sa https://json.nlohmann.me/api/basic_json/is_binary/
1384 /// @sa https://json.nlohmann.me/api/basic_json/is_discarded/
1391 /// @sa https://json.nlohmann.me/api/basic_json/operator_value_t/
1517 @tparam ThisType will be deduced as `basic_json` or `const basic_json`
1542 /// @sa https://json.nlohmann.me/api/basic_json/get_ptr/
1552 /// @sa https://json.nlohmann.me/api/basic_json/get_ptr/
1580 - @a ValueType is not @ref basic_json,
1582 `void from_json(const basic_json&, ValueType&)`, and
1584 the form `ValueType from_json(const basic_json&)`
1629 - @a ValueType is not @ref basic_json and
1631 `ValueType from_json(const basic_json&)`
1657 This overloads converts the current @ref basic_json in a different
1658 @ref basic_json type
1660 @tparam BasicJsonType == @ref basic_json
1684 @tparam BasicJsonType == @ref basic_json
1696 basic_json get_impl(detail::priority_tag<3> /*unused*/) const in get_impl()
1725 … - If the requested type is the current @ref basic_json, or a different @ref basic_json convertible
1726 from the current @ref basic_json.
1792 /// @sa https://json.nlohmann.me/api/basic_json/get_to/
1805 // specialization to allow calling get_to with a basic_json value
1831 /// @sa https://json.nlohmann.me/api/basic_json/get_ref/
1841 /// @sa https://json.nlohmann.me/api/basic_json/get_ref/
1884 detail::negation<std::is_same<ValueType, detail::json_ref<basic_json>>>,
1903 /// @sa https://json.nlohmann.me/api/basic_json/get_binary/
1915 /// @sa https://json.nlohmann.me/api/basic_json/get_binary/
1937 /// @sa https://json.nlohmann.me/api/basic_json/at/
1960 /// @sa https://json.nlohmann.me/api/basic_json/at/
1983 /// @sa https://json.nlohmann.me/api/basic_json/at/
2001 /// @sa https://json.nlohmann.me/api/basic_json/at/
2021 /// @sa https://json.nlohmann.me/api/basic_json/at/
2039 /// @sa https://json.nlohmann.me/api/basic_json/at/
2059 /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
2105 /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
2118 /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
2140 /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
2169 /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
2193 /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
2221 /// @sa https://json.nlohmann.me/api/basic_json/value/
2245 /// @sa https://json.nlohmann.me/api/basic_json/value/
2270 /// @sa https://json.nlohmann.me/api/basic_json/value/
2296 /// @sa https://json.nlohmann.me/api/basic_json/value/
2323 /// @sa https://json.nlohmann.me/api/basic_json/value/
2347 /// @sa https://json.nlohmann.me/api/basic_json/value/
2375 …JSON_HEDLEY_DEPRECATED_FOR(3.11.0, basic_json::json_pointer or nlohmann::json_pointer<basic_json::…
2386 …JSON_HEDLEY_DEPRECATED_FOR(3.11.0, basic_json::json_pointer or nlohmann::json_pointer<basic_json::…
2393 /// @sa https://json.nlohmann.me/api/basic_json/front/
2400 /// @sa https://json.nlohmann.me/api/basic_json/front/
2407 /// @sa https://json.nlohmann.me/api/basic_json/back/
2416 /// @sa https://json.nlohmann.me/api/basic_json/back/
2425 /// @sa https://json.nlohmann.me/api/basic_json/erase/
2495 /// @sa https://json.nlohmann.me/api/basic_json/erase/
2603 /// @sa https://json.nlohmann.me/api/basic_json/erase/
2612 /// @sa https://json.nlohmann.me/api/basic_json/erase/
2621 /// @sa https://json.nlohmann.me/api/basic_json/erase/
2650 /// @sa https://json.nlohmann.me/api/basic_json/find/
2664 /// @sa https://json.nlohmann.me/api/basic_json/find/
2678 /// @sa https://json.nlohmann.me/api/basic_json/find/
2694 /// @sa https://json.nlohmann.me/api/basic_json/find/
2710 /// @sa https://json.nlohmann.me/api/basic_json/count/
2718 /// @sa https://json.nlohmann.me/api/basic_json/count/
2728 /// @sa https://json.nlohmann.me/api/basic_json/contains/
2735 /// @sa https://json.nlohmann.me/api/basic_json/contains/
2744 /// @sa https://json.nlohmann.me/api/basic_json/contains/
2751 …JSON_HEDLEY_DEPRECATED_FOR(3.11.0, basic_json::json_pointer or nlohmann::json_pointer<basic_json::…
2767 /// @sa https://json.nlohmann.me/api/basic_json/begin/
2776 /// @sa https://json.nlohmann.me/api/basic_json/begin/
2783 /// @sa https://json.nlohmann.me/api/basic_json/cbegin/
2792 /// @sa https://json.nlohmann.me/api/basic_json/end/
2801 /// @sa https://json.nlohmann.me/api/basic_json/end/
2808 /// @sa https://json.nlohmann.me/api/basic_json/cend/
2817 /// @sa https://json.nlohmann.me/api/basic_json/rbegin/
2824 /// @sa https://json.nlohmann.me/api/basic_json/rbegin/
2831 /// @sa https://json.nlohmann.me/api/basic_json/rend/
2838 /// @sa https://json.nlohmann.me/api/basic_json/rend/
2845 /// @sa https://json.nlohmann.me/api/basic_json/crbegin/
2852 /// @sa https://json.nlohmann.me/api/basic_json/crend/
2860 /// @sa https://json.nlohmann.me/api/basic_json/items/
2871 /// @sa https://json.nlohmann.me/api/basic_json/items/
2882 /// @sa https://json.nlohmann.me/api/basic_json/items/
2889 /// @sa https://json.nlohmann.me/api/basic_json/items/
2905 /// @sa https://json.nlohmann.me/api/basic_json/empty/
2944 /// @sa https://json.nlohmann.me/api/basic_json/size/
2983 /// @sa https://json.nlohmann.me/api/basic_json/max_size/
3026 /// @sa https://json.nlohmann.me/api/basic_json/clear/
3087 /// @sa https://json.nlohmann.me/api/basic_json/push_back/
3088 void push_back(basic_json&& val) in push_back()
3108 …// if val is moved from, basic_json move constructor marks it null, so we do not call the destruct… in push_back()
3112 /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
3113 reference operator+=(basic_json&& val) in operator +=()
3120 /// @sa https://json.nlohmann.me/api/basic_json/push_back/
3121 void push_back(const basic_json& val) in push_back()
3144 /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
3145 reference operator+=(const basic_json& val) in operator +=()
3152 /// @sa https://json.nlohmann.me/api/basic_json/push_back/
3175 /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
3183 /// @sa https://json.nlohmann.me/api/basic_json/push_back/
3188 basic_json&& key = init.begin()->moved_or_copied(); in push_back()
3194 push_back(basic_json(init)); in push_back()
3199 /// @sa https://json.nlohmann.me/api/basic_json/operator+=/
3207 /// @sa https://json.nlohmann.me/api/basic_json/emplace_back/
3232 /// @sa https://json.nlohmann.me/api/basic_json/emplace/
3284 /// @sa https://json.nlohmann.me/api/basic_json/insert/
3285 iterator insert(const_iterator pos, const basic_json& val) in insert()
3304 /// @sa https://json.nlohmann.me/api/basic_json/insert/
3305 iterator insert(const_iterator pos, basic_json&& val) in insert()
3311 /// @sa https://json.nlohmann.me/api/basic_json/insert/
3312 iterator insert(const_iterator pos, size_type cnt, const basic_json& val) in insert()
3331 /// @sa https://json.nlohmann.me/api/basic_json/insert/
3362 /// @sa https://json.nlohmann.me/api/basic_json/insert/
3382 /// @sa https://json.nlohmann.me/api/basic_json/insert/
3407 /// @sa https://json.nlohmann.me/api/basic_json/update/
3414 /// @sa https://json.nlohmann.me/api/basic_json/update/
3461 /// @sa https://json.nlohmann.me/api/basic_json/swap/
3478 /// @sa https://json.nlohmann.me/api/basic_json/swap/
3490 /// @sa https://json.nlohmann.me/api/basic_json/swap/
3506 /// @sa https://json.nlohmann.me/api/basic_json/swap/
3522 /// @sa https://json.nlohmann.me/api/basic_json/swap/
3538 /// @sa https://json.nlohmann.me/api/basic_json/swap/
3554 /// @sa https://json.nlohmann.me/api/basic_json/swap/
3681 /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
3696 /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
3701 return *this == basic_json(rhs); in operator ==()
3705 /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
3716 /// @sa https://json.nlohmann.me/api/basic_json/operator_spaceship/
3729 /// @sa https://json.nlohmann.me/api/basic_json/operator_spaceship/
3734 return *this <=> basic_json(rhs); // *NOPAD* in operator <=>()
3742 /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
3754 /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
3759 return *this <= basic_json(rhs); in operator <=()
3763 /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
3775 /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
3780 return *this >= basic_json(rhs); in operator >=()
3785 /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
3799 /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
3804 return lhs == basic_json(rhs);
3808 /// @sa https://json.nlohmann.me/api/basic_json/operator_eq/
3813 return basic_json(lhs) == rhs;
3817 /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
3828 /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
3833 return lhs != basic_json(rhs);
3837 /// @sa https://json.nlohmann.me/api/basic_json/operator_ne/
3842 return basic_json(lhs) != rhs;
3846 /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
3856 /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
3861 return lhs < basic_json(rhs);
3865 /// @sa https://json.nlohmann.me/api/basic_json/operator_lt/
3870 return basic_json(lhs) < rhs;
3874 /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
3885 /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
3890 return lhs <= basic_json(rhs);
3894 /// @sa https://json.nlohmann.me/api/basic_json/operator_le/
3899 return basic_json(lhs) <= rhs;
3903 /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
3915 /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
3920 return lhs > basic_json(rhs);
3924 /// @sa https://json.nlohmann.me/api/basic_json/operator_gt/
3929 return basic_json(lhs) > rhs;
3933 /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
3944 /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
3949 return lhs >= basic_json(rhs);
3953 /// @sa https://json.nlohmann.me/api/basic_json/operator_ge/
3958 return basic_json(lhs) >= rhs;
3974 /// @sa https://json.nlohmann.me/api/basic_json/operator_ltlt/
3975 friend std::ostream& operator<<(std::ostream& o, const basic_json& j) in operator <<()
3991 /// @sa https://json.nlohmann.me/api/basic_json/operator_ltlt/
3994 /// operator<<(std::ostream&, const basic_json&) instead; that is,
3996 JSON_HEDLEY_DEPRECATED_FOR(3.0.0, operator<<(std::ostream&, const basic_json&))
3997 friend std::ostream& operator>>(const basic_json& j, std::ostream& o) in operator >>()
4012 /// @sa https://json.nlohmann.me/api/basic_json/parse/
4015 static basic_json parse(InputType&& i, in parse()
4020 basic_json result; in parse()
4026 /// @sa https://json.nlohmann.me/api/basic_json/parse/
4029 static basic_json parse(IteratorType first, in parse()
4035 basic_json result; in parse()
4042 static basic_json parse(detail::span_input_adapter&& i, in parse()
4047 basic_json result; in parse()
4053 /// @sa https://json.nlohmann.me/api/basic_json/accept/
4062 /// @sa https://json.nlohmann.me/api/basic_json/accept/
4079 /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
4090 …: detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia), format).sax_parse(format, sa… in sax_parse()
4094 /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
4105 …: detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia), format).sax_parse(format, sa… in sax_parse()
4109 /// @sa https://json.nlohmann.me/api/basic_json/sax_parse/
4126 …: detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia), format).sax_parse(format, sa… in sax_parse()
4130 /// @sa https://json.nlohmann.me/api/basic_json/operator_gtgt/
4133 /// operator>>(std::istream&, basic_json&) instead; that is,
4135 JSON_HEDLEY_DEPRECATED_FOR(3.0.0, operator>>(std::istream&, basic_json&))
4136 friend std::istream& operator<<(basic_json& j, std::istream& i) in operator <<()
4142 /// @sa https://json.nlohmann.me/api/basic_json/operator_gtgt/
4143 friend std::istream& operator>>(std::istream& i, basic_json& j) in operator >>()
4156 /// @sa https://json.nlohmann.me/api/basic_json/type_name/
4202 data(size_type cnt, const basic_json& val) in data()
4224 basic_json* m_parent = nullptr;
4236 /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
4237 static std::vector<std::uint8_t> to_cbor(const basic_json& j) in to_cbor()
4245 /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
4246 static void to_cbor(const basic_json& j, detail::output_adapter<std::uint8_t> o) in to_cbor()
4252 /// @sa https://json.nlohmann.me/api/basic_json/to_cbor/
4253 static void to_cbor(const basic_json& j, detail::output_adapter<char> o) in to_cbor()
4259 /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
4260 static std::vector<std::uint8_t> to_msgpack(const basic_json& j) in to_msgpack()
4268 /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
4269 static void to_msgpack(const basic_json& j, detail::output_adapter<std::uint8_t> o) in to_msgpack()
4275 /// @sa https://json.nlohmann.me/api/basic_json/to_msgpack/
4276 static void to_msgpack(const basic_json& j, detail::output_adapter<char> o) in to_msgpack()
4282 /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
4283 static std::vector<std::uint8_t> to_ubjson(const basic_json& j, in to_ubjson()
4293 /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
4294 static void to_ubjson(const basic_json& j, detail::output_adapter<std::uint8_t> o, in to_ubjson()
4301 /// @sa https://json.nlohmann.me/api/basic_json/to_ubjson/
4302 static void to_ubjson(const basic_json& j, detail::output_adapter<char> o, in to_ubjson()
4309 /// @sa https://json.nlohmann.me/api/basic_json/to_bjdata/
4310 static std::vector<std::uint8_t> to_bjdata(const basic_json& j, in to_bjdata()
4320 /// @sa https://json.nlohmann.me/api/basic_json/to_bjdata/
4321 static void to_bjdata(const basic_json& j, detail::output_adapter<std::uint8_t> o, in to_bjdata()
4328 /// @sa https://json.nlohmann.me/api/basic_json/to_bjdata/
4329 static void to_bjdata(const basic_json& j, detail::output_adapter<char> o, in to_bjdata()
4336 /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
4337 static std::vector<std::uint8_t> to_bson(const basic_json& j) in to_bson()
4345 /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
4346 static void to_bson(const basic_json& j, detail::output_adapter<std::uint8_t> o) in to_bson()
4352 /// @sa https://json.nlohmann.me/api/basic_json/to_bson/
4353 static void to_bson(const basic_json& j, detail::output_adapter<char> o) in to_bson()
4359 /// @sa https://json.nlohmann.me/api/basic_json/from_cbor/
4362 static basic_json from_cbor(InputType&& i, in from_cbor()
4367 basic_json result; in from_cbor()
4368 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); in from_cbor()
4371 return res ? result : basic_json(value_t::discarded); in from_cbor()
4375 /// @sa https://json.nlohmann.me/api/basic_json/from_cbor/
4378 static basic_json from_cbor(IteratorType first, IteratorType last, in from_cbor()
4383 basic_json result; in from_cbor()
4384 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); in from_cbor()
4387 return res ? result : basic_json(value_t::discarded); in from_cbor()
4393 static basic_json from_cbor(const T* ptr, std::size_t len, in from_cbor()
4403 static basic_json from_cbor(detail::span_input_adapter&& i, in from_cbor()
4408 basic_json result; in from_cbor()
4409 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); in from_cbor()
4413 return res ? result : basic_json(value_t::discarded); in from_cbor()
4417 /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/
4420 static basic_json from_msgpack(InputType&& i, in from_msgpack()
4424 basic_json result; in from_msgpack()
4425 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); in from_msgpack()
4428 return res ? result : basic_json(value_t::discarded); in from_msgpack()
4432 /// @sa https://json.nlohmann.me/api/basic_json/from_msgpack/
4435 static basic_json from_msgpack(IteratorType first, IteratorType last, in from_msgpack()
4439 basic_json result; in from_msgpack()
4440 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); in from_msgpack()
4443 return res ? result : basic_json(value_t::discarded); in from_msgpack()
4449 static basic_json from_msgpack(const T* ptr, std::size_t len, in from_msgpack()
4458 static basic_json from_msgpack(detail::span_input_adapter&& i, in from_msgpack()
4462 basic_json result; in from_msgpack()
4463 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); in from_msgpack()
4467 return res ? result : basic_json(value_t::discarded); in from_msgpack()
4471 /// @sa https://json.nlohmann.me/api/basic_json/from_ubjson/
4474 static basic_json from_ubjson(InputType&& i, in from_ubjson()
4478 basic_json result; in from_ubjson()
4479 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); in from_ubjson()
4482 return res ? result : basic_json(value_t::discarded); in from_ubjson()
4486 /// @sa https://json.nlohmann.me/api/basic_json/from_ubjson/
4489 static basic_json from_ubjson(IteratorType first, IteratorType last, in from_ubjson()
4493 basic_json result; in from_ubjson()
4494 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); in from_ubjson()
4497 return res ? result : basic_json(value_t::discarded); in from_ubjson()
4503 static basic_json from_ubjson(const T* ptr, std::size_t len, in from_ubjson()
4512 static basic_json from_ubjson(detail::span_input_adapter&& i, in from_ubjson()
4516 basic_json result; in from_ubjson()
4517 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); in from_ubjson()
4521 return res ? result : basic_json(value_t::discarded); in from_ubjson()
4525 /// @sa https://json.nlohmann.me/api/basic_json/from_bjdata/
4528 static basic_json from_bjdata(InputType&& i, in from_bjdata()
4532 basic_json result; in from_bjdata()
4533 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); in from_bjdata()
4536 return res ? result : basic_json(value_t::discarded); in from_bjdata()
4540 /// @sa https://json.nlohmann.me/api/basic_json/from_bjdata/
4543 static basic_json from_bjdata(IteratorType first, IteratorType last, in from_bjdata()
4547 basic_json result; in from_bjdata()
4548 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); in from_bjdata()
4551 return res ? result : basic_json(value_t::discarded); in from_bjdata()
4555 /// @sa https://json.nlohmann.me/api/basic_json/from_bson/
4558 static basic_json from_bson(InputType&& i, in from_bson()
4562 basic_json result; in from_bson()
4563 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); in from_bson()
4566 return res ? result : basic_json(value_t::discarded); in from_bson()
4570 /// @sa https://json.nlohmann.me/api/basic_json/from_bson/
4573 static basic_json from_bson(IteratorType first, IteratorType last, in from_bson()
4577 basic_json result; in from_bson()
4578 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); in from_bson()
4581 return res ? result : basic_json(value_t::discarded); in from_bson()
4587 static basic_json from_bson(const T* ptr, std::size_t len, in from_bson()
4596 static basic_json from_bson(detail::span_input_adapter&& i, in from_bson()
4600 basic_json result; in from_bson()
4601 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions); in from_bson()
4605 return res ? result : basic_json(value_t::discarded); in from_bson()
4617 /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
4624 …JSON_HEDLEY_DEPRECATED_FOR(3.11.0, basic_json::json_pointer or nlohmann::json_pointer<basic_json::…
4631 /// @sa https://json.nlohmann.me/api/basic_json/operator%5B%5D/
4638 …JSON_HEDLEY_DEPRECATED_FOR(3.11.0, basic_json::json_pointer or nlohmann::json_pointer<basic_json::…
4645 /// @sa https://json.nlohmann.me/api/basic_json/at/
4652 …JSON_HEDLEY_DEPRECATED_FOR(3.11.0, basic_json::json_pointer or nlohmann::json_pointer<basic_json::…
4659 /// @sa https://json.nlohmann.me/api/basic_json/at/
4666 …JSON_HEDLEY_DEPRECATED_FOR(3.11.0, basic_json::json_pointer or nlohmann::json_pointer<basic_json::…
4673 /// @sa https://json.nlohmann.me/api/basic_json/flatten/
4674 basic_json flatten() const in flatten()
4676 basic_json result(value_t::object); in flatten()
4682 /// @sa https://json.nlohmann.me/api/basic_json/unflatten/
4683 basic_json unflatten() const in unflatten()
4698 /// @sa https://json.nlohmann.me/api/basic_json/patch/
4699 void patch_inplace(const basic_json& json_patch) in patch_inplace()
4701 basic_json& result = *this; in patch_inplace()
4736 const auto operation_add = [&result](json_pointer & ptr, basic_json val) in patch_inplace()
4756 basic_json& parent = result.at(ptr); in patch_inplace()
4809 basic_json& parent = result.at(ptr); in patch_inplace()
4844 bool string_type) -> basic_json & in patch_inplace()
4908 basic_json const v = result.at(from_ptr); in patch_inplace()
4925 basic_json const v = result.at(from_ptr); in patch_inplace()
4969 /// @sa https://json.nlohmann.me/api/basic_json/patch/
4970 basic_json patch(const basic_json& json_patch) const in patch()
4972 basic_json result = *this; in patch()
4978 /// @sa https://json.nlohmann.me/api/basic_json/diff/
4980 static basic_json diff(const basic_json& source, const basic_json& target, in diff()
4984 basic_json result(value_t::array); in diff()
5121 /// @sa https://json.nlohmann.me/api/basic_json/merge_patch/
5122 void merge_patch(const basic_json& apply_patch) in merge_patch()
5152 /// @sa https://json.nlohmann.me/api/basic_json/to_string/
5165 /// @sa https://json.nlohmann.me/api/basic_json/operator_literal_json/
5177 /// @sa https://json.nlohmann.me/api/basic_json/operator_literal_json_pointer/
5200 /// @sa https://json.nlohmann.me/api/basic_json/std_hash/
5233 /// @sa https://json.nlohmann.me/api/basic_json/std_swap/