This commit is contained in:
Andrey Zimin
2024-05-15 18:55:51 +03:00
parent 478e417dc1
commit 04de2af292
3 changed files with 11 additions and 9 deletions

View File

@@ -63,7 +63,7 @@ namespace hack::utils
template<typename Json>
inline std::string make_one(const Json& f)
{
auto f_str = f;
auto f_str = f.dump();
f_str = std::regex_replace(f_str, std::regex("'"), "[quote]");
return hack::string::str_concat + "'" + f_str + "'::jsonb,";
}