Function nlohmann::detail::operator<
Defined in File json.hpp
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
Returns an ordering that is similar to Python:
order: null < boolean < number < object < array < string < binary
furthermore, each type is not smaller than itself
discarded values are not comparable
binary is represented as a b”” string in python and directly comparable to a string; however, making a binary array directly comparable with a string would be surprising behavior in a JSON file.
- Since
version 1.0.0
- Since
version 1.0.0