CppWAMP
C++11 client library for the WAMP protocol
wamp::BasicJsonEncoder< O, C > Class Template Reference

JSON encoder. More...

#include <cppwamp/json.hpp>

Public Member Functions

 BasicJsonEncoder ()
 Default constructor.
 
 ~BasicJsonEncoder ()
 Destructor.
 
void encode (const Variant &variant, Output &output)
 Serializes from the given variant to the given output (it does not first clear the output, by design).
 

Detailed Description

template<typename O, typename C = OutputCategoryTypeOf<O>>
class wamp::BasicJsonEncoder< O, C >

JSON encoder.

This class uses jsoncons to serialize JSON payloads from Variant instances.

Meets the requirements of the CodecEncoder concept.

Template Parameters
OThe output type in which to encode.
CThe output category type (deduced).

The documentation for this class was generated from the following files: