Decentralised Art Server
High-performance C++ backend that exposes HTML interface and a secure REST API for managing Performative Transactions entities
 
Loading...
Searching...
No Matches
samples.hpp
Go to the documentation of this file.
1#pragma once
2#include <string>
3#include <vector>
4
5#include "samples.pb.h"
6
7#include "parser.hpp"
8
9namespace dcn::parse
10{
15 template<>
16 Result<json> parseToJson(std::vector<Samples> samples, use_json_t);
17
22 template<>
23 Result<std::vector<Samples>> parseFromJson(json json, use_json_t);
24}
Definition auth.cpp:4
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.
nlohmann::json json
Definition parser.hpp:4