Lines Matching refs:from_json
150 // #include <nlohmann/detail/conversions/from_json.hpp>
2571 inline void from_json(const BasicJsonType& j, ENUM_TYPE& e) \
2744 friend void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) }
2748 friend void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { Type nlohmann_json_default_obj; NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM_WITH_DEFAULT, __VA_ARGS__)) }
2757 inline void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM, __VA_ARGS__)) }
2761 inline void from_json(const nlohmann::json& nlohmann_json_j, Type& nlohmann_json_t) { Type nlohmann_json_default_obj; NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_FROM_WITH_DEFAULT, __VA_ARGS__)) }
3502 using from_json_function = decltype(T::from_json(std::declval<Args>()...));
3507 // trait checking if JSONSerializer<T>::from_json(json const&, udt&) exists
3531 // This trait checks if JSONSerializer<T>::from_json(json const&) exists
4593 inline void from_json(const BasicJsonType& j, typename std::nullptr_t& n)
4640 inline void from_json(const BasicJsonType& j, typename BasicJsonType::boolean_t& b)
4650 inline void from_json(const BasicJsonType& j, typename BasicJsonType::string_t& s)
4666 inline void from_json(const BasicJsonType& j, StringType& s)
4677 inline void from_json(const BasicJsonType& j, typename BasicJsonType::number_float_t& val)
4683 inline void from_json(const BasicJsonType& j, typename BasicJsonType::number_unsigned_t& val)
4689 inline void from_json(const BasicJsonType& j, typename BasicJsonType::number_integer_t& val)
4697 inline void from_json(const BasicJsonType& j, EnumType& e)
4708 inline void from_json(const BasicJsonType& j, std::forward_list<T, Allocator>& l)
4725 inline void from_json(const BasicJsonType& j, std::valarray<T>& l)
4740 auto from_json(const BasicJsonType& j, T (&arr)[N]) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
4783 // get<BasicJsonType>() returns *this, this won't call a from_json
4804 // get<BasicJsonType>() returns *this, this won't call a from_json
4819 auto from_json(const BasicJsonType& j, ConstructibleArrayType& arr)
4840 auto from_json(BasicJsonType&& j, identity_tag<std::array<T, N>> tag)
4852 inline void from_json(const BasicJsonType& j, typename BasicJsonType::binary_t& bin)
4864 inline void from_json(const BasicJsonType& j, ConstructibleObjectType& obj)
4896 inline void from_json(const BasicJsonType& j, ArithmeticType& val)
4964 auto from_json(BasicJsonType&& j, TupleRelated&& t)
4978 inline void from_json(const BasicJsonType& j, std::map<Key, Value, Compare, Allocator>& m)
4998 inline void from_json(const BasicJsonType& j, std::unordered_map<Key, Value, Hash, KeyEqual, Allocator>& m)
5017 inline void from_json(const BasicJsonType& j, std_fs::path& p)
5031 noexcept(noexcept(from_json(j, std::forward<T>(val))))
5032 -> decltype(from_json(j, std::forward<T>(val)))
5034 return from_json(j, std::forward<T>(val));
5041 /// namespace to hold default `from_json` function
5047 JSON_INLINE_VARIABLE constexpr const auto& from_json = // NOLINT(misc-definitions-in-headers)
5764 /// @sa https://json.nlohmann.me/api/adl_serializer/from_json/
5766 static auto from_json(BasicJsonType && j, TargetType& val) noexcept(
5767 noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val)))
5768 -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void())
5770 ::nlohmann::from_json(std::forward<BasicJsonType>(j), val);
5774 /// @sa https://json.nlohmann.me/api/adl_serializer/from_json/
5776 static auto from_json(BasicJsonType && j) noexcept(
5777 noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {})))
5778 -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {}))
5780 return ::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {});
5902 // #include <nlohmann/detail/conversions/from_json.hpp>
20735 `from_json()` method.
20740 JSONSerializer<ValueType>::from_json(*this, ret);
20746 - @ref json_serializer<ValueType> has a `from_json()` method of the form
20747 `void from_json(const basic_json&, ValueType&)`, and
20748 - @ref json_serializer<ValueType> does not have a `from_json()` method of
20749 the form `ValueType from_json(const basic_json&)`
20755 @throw what @ref json_serializer<ValueType> `from_json()` method throws
20772 JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>(), std::declval<ValueType&>())))
20775 JSONSerializer<ValueType>::from_json(*this, ret);
20786 `from_json()` method.
20790 return JSONSerializer<ValueType>::from_json(*this);
20795 - @ref json_serializer<ValueType> has a `from_json()` method of the form
20796 `ValueType from_json(const basic_json&)`
20799 `from_json()`, this one is chosen.
20805 @throw what @ref json_serializer<ValueType> `from_json()` method throws
20814 JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>())))
20816 return JSONSerializer<ValueType>::from_json(*this);
20829 @complexity Depending on the implementation of the called `from_json()`
20893 - Otherwise the value is converted by calling the @ref json_serializer<ValueType> `from_json()`
20901 @throw what @ref json_serializer<ValueType> `from_json()` method throws if conversion is required
20964 JSONSerializer<ValueType>::from_json(std::declval<const basic_json_t&>(), v)))
20966 JSONSerializer<ValueType>::from_json(*this, v);
20988 noexcept(noexcept(JSONSerializer<Array>::from_json(
20991 JSONSerializer<Array>::from_json(*this, v);