Function nlohmann::detail::operator<

Function Documentation

inline bool nlohmann::detail::operator<(const value_t lhs, const value_t rhs) noexcept

comparison operator for JSON types

Returns an ordering that is similar to Python:

  • order: null < boolean < number < object < array < string

  • furthermore, each type is not smaller than itself

  • discarded values are not comparable

Since

version 1.0.0