Goby3  3.1.4
2024.02.22
goby::middleware::SerializerParserHelper< nlohmann::json, MarshallingScheme::JSON > Struct Reference

Support nlohmann JSON library in Goby3 using BSON encoding. More...

#include <goby/middleware/marshalling/json.h>

Static Public Member Functions

static std::vector< charserialize (const nlohmann::json &msg)
 
static std::string type_name (const nlohmann::json &d=nlohmann::json())
 
template<typename CharIterator >
static std::shared_ptr< nlohmann::jsonparse (CharIterator bytes_begin, CharIterator bytes_end, CharIterator &actual_end, const std::string &type=type_name())
 

Detailed Description

Support nlohmann JSON library in Goby3 using BSON encoding.

Definition at line 38 of file json.h.

Member Function Documentation

◆ parse()

template<typename CharIterator >
static std::shared_ptr<nlohmann::json> goby::middleware::SerializerParserHelper< nlohmann::json, MarshallingScheme::JSON >::parse ( CharIterator  bytes_begin,
CharIterator  bytes_end,
CharIterator &  actual_end,
const std::string &  type = type_name() 
)
inlinestatic

Definition at line 53 of file json.h.

◆ serialize()

static std::vector<char> goby::middleware::SerializerParserHelper< nlohmann::json, MarshallingScheme::JSON >::serialize ( const nlohmann::json msg)
inlinestatic

Definition at line 40 of file json.h.

◆ type_name()

static std::string goby::middleware::SerializerParserHelper< nlohmann::json, MarshallingScheme::JSON >::type_name ( const nlohmann::json d = nlohmann::json())
inlinestatic

Definition at line 47 of file json.h.


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