Leosac  0.8.0
Open Source Access Control
Leosac::JSONSerializer< T > Struct Template Reference

A JSON serializer that can serialize an object of type T. More...

#include <JSONSerializer.hpp>

Static Public Member Functions

static std::string to_string (const T &)
 Serialize to an std::string. More...
 
static json to_object (const T &)
 Serialize to a json object. More...
 

Detailed Description

template<typename T>
struct Leosac::JSONSerializer< T >

A JSON serializer that can serialize an object of type T.

Definition at line 34 of file JSONSerializer.hpp.

Member Function Documentation

◆ to_object()

template<typename T >
static json Leosac::JSONSerializer< T >::to_object ( const T &  )
inlinestatic

Serialize to a json object.

Definition at line 48 of file JSONSerializer.hpp.

◆ to_string()

template<typename T >
static std::string Leosac::JSONSerializer< T >::to_string ( const T &  )
inlinestatic

Serialize to an std::string.

Definition at line 39 of file JSONSerializer.hpp.


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