Lines Matching defs:to_json
2559 inline void to_json(BasicJsonType& j, const ENUM_TYPE& e) \
2743 friend void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
2747 friend void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
2756 inline void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
2760 inline void to_json(nlohmann::json& nlohmann_json_j, const Type& nlohmann_json_t) { NLOHMANN_JSON_EXPAND(NLOHMANN_JSON_PASTE(NLOHMANN_JSON_TO, __VA_ARGS__)) } \
3443 // (e.g. to_json(BasicJsonType&, const T&))
3499 using to_json_function = decltype(T::to_json(std::declval<Args>()...));
3546 // This trait checks if BasicJsonType::json_serializer<T>::to_json exists
5055 // #include <nlohmann/detail/conversions/to_json.hpp>
5566 // to_json //
5571 inline void to_json(BasicJsonType& j, T b) noexcept
5584 inline void to_json(BasicJsonType& j, const BoolRef& b) noexcept
5591 inline void to_json(BasicJsonType& j, const CompatibleString& s)
5597 inline void to_json(BasicJsonType& j, typename BasicJsonType::string_t&& s)
5604 inline void to_json(BasicJsonType& j, FloatType val) noexcept
5611 inline void to_json(BasicJsonType& j, CompatibleNumberUnsignedType val) noexcept
5618 inline void to_json(BasicJsonType& j, CompatibleNumberIntegerType val) noexcept
5626 inline void to_json(BasicJsonType& j, EnumType e) noexcept
5634 inline void to_json(BasicJsonType& j, const std::vector<bool>& e)
5647 inline void to_json(BasicJsonType& j, const CompatibleArrayType& arr)
5653 inline void to_json(BasicJsonType& j, const typename BasicJsonType::binary_t& bin)
5660 inline void to_json(BasicJsonType& j, const std::valarray<T>& arr)
5666 inline void to_json(BasicJsonType& j, typename BasicJsonType::array_t&& arr)
5673 inline void to_json(BasicJsonType& j, const CompatibleObjectType& obj)
5679 inline void to_json(BasicJsonType& j, typename BasicJsonType::object_t&& obj)
5689 inline void to_json(BasicJsonType& j, const T(&arr)[N]) // NOLINT(cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
5695 inline void to_json(BasicJsonType& j, const std::pair<T1, T2>& p)
5703 inline void to_json(BasicJsonType& j, const T& b)
5715 inline void to_json(BasicJsonType& j, const T& t)
5722 inline void to_json(BasicJsonType& j, const std_fs::path& p)
5731 auto operator()(BasicJsonType& j, T&& val) const noexcept(noexcept(to_json(j, std::forward<T>(val))))
5732 -> decltype(to_json(j, std::forward<T>(val)), void())
5734 return to_json(j, std::forward<T>(val));
5740 /// namespace to hold default `to_json` function
5746 JSON_INLINE_VARIABLE constexpr const auto& to_json = // NOLINT(misc-definitions-in-headers)
5784 /// @sa https://json.nlohmann.me/api/adl_serializer/to_json/
5786 static auto to_json(BasicJsonType& j, TargetType && val) noexcept(
5787 noexcept(::nlohmann::to_json(j, std::forward<TargetType>(val))))
5788 -> decltype(::nlohmann::to_json(j, std::forward<TargetType>(val)), void())
5790 ::nlohmann::to_json(j, std::forward<TargetType>(val));
5904 // #include <nlohmann/detail/conversions/to_json.hpp>
20004 JSONSerializer<U>::to_json(std::declval<basic_json_t&>(),
20007 JSONSerializer<U>::to_json(*this, std::forward<CompatibleType>(val));
20031 JSONSerializer<other_boolean_t>::to_json(*this, val.template get<other_boolean_t>());
20034 JSONSerializer<other_number_float_t>::to_json(*this, val.template get<other_number_float_t>());
20037 JSONSerializer<other_number_integer_t>::to_json(*this, val.template get<other_number_integer_t>());
20040 JSONSerializer<other_number_unsigned_t>::to_json(*this, val.template get<other_number_unsigned_t>());
20043 JSONSerializer<other_string_t>::to_json(*this, val.template get_ref<const other_string_t&>());
20046 JSONSerializer<other_object_t>::to_json(*this, val.template get_ref<const other_object_t&>());
20049 JSONSerializer<other_array_t>::to_json(*this, val.template get_ref<const other_array_t&>());
20052 JSONSerializer<other_binary_t>::to_json(*this, val.template get_ref<const other_binary_t&>());