JWT-CPP v0.7.0
A header only library for creating and validating JSON Web Tokens (JWT) in C++
Loading...
Searching...
No Matches
jwt::traits::nlohmann_json Struct Reference

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

#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_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


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