Conscience Core
Public Types | Static Public Member Functions | List of all members
jwt::traits::nlohmann_json Struct Reference

#include <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)
 

Member Typedef Documentation

◆ array_type

◆ boolean_type

◆ integer_type

◆ json

◆ number_type

◆ object_type

◆ string_type

◆ value_type

Member Function Documentation

◆ as_array()

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

◆ as_bool()

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

◆ as_int()

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

◆ as_number()

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

◆ as_object()

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

◆ as_string()

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

◆ get_type()

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

◆ parse()

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

◆ serialize()

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

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