WPILibC++ 2024.1.1-beta-4
json.h File Reference
#include <algorithm>
#include <cstddef>
#include <functional>
#include <initializer_list>
#include <iosfwd>
#include <iterator>
#include <memory>
#include <numeric>
#include <string>
#include <utility>
#include <vector>
#include <wpi/adl_serializer.h>
#include <wpi/byte_container_with_subtype.h>
#include <wpi/detail/conversions/from_json.h>
#include <wpi/detail/conversions/to_json.h>
#include <wpi/detail/exceptions.h>
#include <wpi/detail/hash.h>
#include <wpi/detail/input/binary_reader.h>
#include <wpi/detail/input/input_adapters.h>
#include <wpi/detail/input/lexer.h>
#include <wpi/detail/input/parser.h>
#include <wpi/detail/iterators/internal_iterator.h>
#include <wpi/detail/iterators/iter_impl.h>
#include <wpi/detail/iterators/iteration_proxy.h>
#include <wpi/detail/iterators/json_reverse_iterator.h>
#include <wpi/detail/iterators/primitive_iterator.h>
#include <wpi/detail/json_pointer.h>
#include <wpi/detail/json_ref.h>
#include <wpi/detail/macro_scope.h>
#include <wpi/detail/string_concat.h>
#include <wpi/detail/string_escape.h>
#include <wpi/detail/meta/cpp_future.h>
#include <wpi/detail/meta/type_traits.h>
#include <wpi/detail/output/binary_writer.h>
#include <wpi/detail/output/output_adapters.h>
#include <wpi/detail/output/serializer.h>
#include <wpi/detail/value_t.h>
#include <wpi/json_fwd.h>
#include <wpi/ordered_map.h>
#include <wpi/detail/macro_unscope.h>

Go to the source code of this file.

Classes

class  basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >
 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
 

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) is_nothrow_move_constructible< wpi::WPI_BASIC_JSON_TPL >::value &&//NOLINT(misc-redundant-expression) 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/