5#include "particles.pb.h"
Result< json > parseToJson(T message, use_json_t)
Converts a T to a JSON object using JSON.
Result< T > parseFromJson(json json, use_json_t)
Converts a JSON string to a T using JSON.
Result< T > decodeBytes(const std::vector< uint8_t > &bytes)
std::expected< T, ParseError > Result
Definition parse_error.hpp:26
nlohmann::json json
Definition parser.hpp:7
A tag type to indicate whether to use Protobuf or JSON for parsing.
Definition parser.hpp:27