5#include "particles.pb.h"
16 Result<json>
parseToJson(std::vector<Particles> particles, use_json_t);
Result< json > parseToJson(T message, use_json_t)
Converts a T to a JSON object using JSON.
std::expected< T, ParseError > Result
Definition parse_error.hpp:26
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)
nlohmann::json json
Definition parser.hpp:7