Goby3 3.5.1
2026.06.04
Loading...
Searching...
No Matches
jwt::traits::nlohmann_json Struct Reference

basic_claim's JSON trait implementation for Modern C++ JSON More...

#include <goby/util/thirdparty/jwt-cpp/traits/nlohmann-json/traits.h>

Public Types

using json = nlohmann::json
using value_type = json
using object_type = json::object_t
using array_type = json::array_t
using string_type = std::string
using number_type = json::number_float_t
using integer_type = json::number_integer_t
using boolean_type = json::boolean_t

Static Public Member Functions

static jwt::json::type get_type (const json &val)
static json::object_t as_object (const json &val)
static std::string as_string (const json &val)
static json::array_t as_array (const json &val)
static int64_t as_integer (const json &val)
static bool as_boolean (const json &val)
static double as_number (const json &val)
static bool parse (json &val, std::string str)
static std::string serialize (const json &val)

Detailed Description

basic_claim's JSON trait implementation for Modern C++ JSON

Definition at line 13 of file traits.h.

Member Typedef Documentation

◆ array_type

Definition at line 17 of file traits.h.

◆ boolean_type

Definition at line 21 of file traits.h.

◆ integer_type

using jwt::traits::nlohmann_json::integer_type = json::number_integer_t

Definition at line 20 of file traits.h.

◆ json

using jwt::traits::nlohmann_json::json = nlohmann::json

Definition at line 14 of file traits.h.

◆ number_type

using jwt::traits::nlohmann_json::number_type = json::number_float_t

Definition at line 19 of file traits.h.

◆ object_type

Definition at line 16 of file traits.h.

◆ string_type

Definition at line 18 of file traits.h.

◆ value_type

Definition at line 15 of file traits.h.

Member Function Documentation

◆ as_array()

json::array_t jwt::traits::nlohmann_json::as_array ( const json & val)
inlinestatic

Definition at line 48 of file traits.h.

◆ as_boolean()

bool jwt::traits::nlohmann_json::as_boolean ( const json & val)
inlinestatic

Definition at line 61 of file traits.h.

◆ as_integer()

int64_t jwt::traits::nlohmann_json::as_integer ( const json & val)
inlinestatic

Definition at line 53 of file traits.h.

◆ as_number()

double jwt::traits::nlohmann_json::as_number ( const json & val)
inlinestatic

Definition at line 66 of file traits.h.

◆ as_object()

json::object_t jwt::traits::nlohmann_json::as_object ( const json & val)
inlinestatic

Definition at line 38 of file traits.h.

◆ as_string()

std::string jwt::traits::nlohmann_json::as_string ( const json & val)
inlinestatic

Definition at line 43 of file traits.h.

◆ get_type()

jwt::json::type jwt::traits::nlohmann_json::get_type ( const json & val)
inlinestatic

Definition at line 23 of file traits.h.

◆ parse()

bool jwt::traits::nlohmann_json::parse ( json & val,
std::string str )
inlinestatic

Definition at line 71 of file traits.h.

◆ serialize()

std::string jwt::traits::nlohmann_json::serialize ( const json & val)
inlinestatic

Definition at line 76 of file traits.h.


The documentation for this struct was generated from the following file:
  • goby/util/thirdparty/jwt-cpp/traits/nlohmann-json/traits.h