WPILibC++ 2025.1.1
Loading...
Searching...
No Matches
json.h File Reference

Go to the source code of this file.

Classes

class  basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType, CustomBaseClass >
 namespace for Niels Lohmann More...
 
struct  std::hash< wpi::WPI_BASIC_JSON_TPL >
 hash value for JSON objects More...
 
struct  std::less< ::wpi::detail::value_t >
 

Namespaces

namespace  literals
 
namespace  literals::json_literals
 
namespace  std
 Implement std::hash so that hash_code can be used in STL containers.
 

Macros

lexicographical comparison operators
#define JSON_IMPLEMENT_OPERATOR(op, null_result, unordered_result, default_result)
 

Functions

WPI_BASIC_JSON_TPL_DECLARATION std::string to_string (const WPI_BASIC_JSON_TPL &j)
 user-defined to_string function for JSON values
 
wpi::json literals::json_literals::operator""_json (const char *s, std::size_t n)
 user-defined string literal for JSON values
 
wpi::json::json_pointer literals::json_literals::operator""_json_pointer (const char *s, std::size_t n)
 user-defined string literal for JSON pointer
 
WPI_BASIC_JSON_TPL_DECLARATION void std::swap (wpi::WPI_BASIC_JSON_TPL &j1, wpi::WPI_BASIC_JSON_TPL &j2) noexcept(//NOLINT(readability-inconsistent-declaration-parameter-name, cert-dcl58-cpp) is_nothrow_move_constructible< wpi::WPI_BASIC_JSON_TPL >::value &&//NOLINT(misc-redundant-expression, cppcoreguidelines-noexcept-swap, performance-noexcept-swap) is_nothrow_move_assignable< wpi::WPI_BASIC_JSON_TPL >::value)
 exchanges the values of two JSON objects
 

Macro Definition Documentation

◆ JSON_IMPLEMENT_OPERATOR

#define JSON_IMPLEMENT_OPERATOR ( op,
null_result,
unordered_result,
default_result )

Function Documentation

◆ to_string()

user-defined to_string function for JSON values

See also
https://json.nlohmann.me/api/basic_json/to_string/