WPILibC++ 2025.0.0-alpha-1-24-g6478ba6
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 More...
 
wpi::json literals::json_literals::operator""_json (const char *s, std::size_t n)
 user-defined string literal for JSON values More...
 
wpi::json::json_pointer literals::json_literals::operator""_json_pointer (const char *s, std::size_t n)
 user-defined string literal for JSON pointer More...
 
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 More...
 

Macro Definition Documentation

◆ JSON_IMPLEMENT_OPERATOR

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

Function Documentation

◆ to_string()

WPI_BASIC_JSON_TPL_DECLARATION std::string to_string ( const WPI_BASIC_JSON_TPL j)

user-defined to_string function for JSON values

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