Goby3  3.1.5a
2024.05.23
jwt::traits::nlohmann_json Struct Reference

#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_int (const json &val)
 
static bool as_bool (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

Definition at line 11 of file traits.h.

Member Typedef Documentation

◆ array_type

Definition at line 16 of file traits.h.

◆ boolean_type

◆ integer_type

◆ json

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

Definition at line 13 of file traits.h.

◆ number_type

◆ object_type

◆ string_type

Definition at line 17 of file traits.h.

◆ value_type

Definition at line 14 of file traits.h.

Member Function Documentation

◆ as_array()

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

Definition at line 59 of file traits.h.

◆ as_bool()

static bool jwt::traits::nlohmann_json::as_bool ( const json val)
inlinestatic

Definition at line 76 of file traits.h.

◆ as_int()

static int64_t jwt::traits::nlohmann_json::as_int ( const json val)
inlinestatic

Definition at line 66 of file traits.h.

◆ as_number()

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

Definition at line 83 of file traits.h.

◆ as_object()

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

Definition at line 45 of file traits.h.

◆ as_string()

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

Definition at line 52 of file traits.h.

◆ get_type()

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

Definition at line 22 of file traits.h.

◆ parse()

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

Definition at line 90 of file traits.h.

◆ serialize()

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

Definition at line 96 of file traits.h.


The documentation for this struct was generated from the following file: