convert a JSON value to any value type

Synopsis

Declared in <nlohmann/adl_serializer.hpp>

template<
    typename BasicJsonType,
    typename TargetType = ValueType>
static
decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {}))
from_json(BasicJsonType&& j) noexcept(/* see-below */);

Exception specification

This function is potentially-throwing unless noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType>{})).

Created with MrDocs