JsonConverter.cpp
Go to the documentation of this file.
1#include "JsonConverter.h"
2
4
6
8{
11 {
12 nlohmann::json j =
14 auto str = j.dump(2);
15 return {std::vector<unsigned char>(str.begin(), str.end()), ""};
16 }
17
20 {
21 std::string str(data.data.begin(), data.data.end());
22 nlohmann::json j = nlohmann::json::parse(str);
24 p);
25 }
26} // namespace armarx::armem::server::ltm::processor::converter::data::object
std::string str(const T &t)
ConversionResult _convert(const aron::data::DictPtr &data) final
The Path class.
Definition Path.h:36
static data::DictPtr ConvertFromNlohmannJSONObject(const nlohmann::json &, const armarx::aron::Path &p={})
static nlohmann::json ConvertToNlohmannJSON(const data::VariantPtr &)
std::shared_ptr< Dict > DictPtr
Definition Dict.h:42