1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Serialize tool capabilities JSON without whitespace

fixes #11087
This commit is contained in:
sfan5 2021-03-20 22:06:17 +01:00
parent 042131d91d
commit 531e7ef8eb
3 changed files with 13 additions and 4 deletions

View file

@ -20,8 +20,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#pragma once
#include <json/json.h>
#include <ostream>
Json::Value fetchJsonValue(const std::string &url,
std::vector<std::string> *extra_headers);
void fastWriteJson(const Json::Value &value, std::ostream &to);
std::string fastWriteJson(const Json::Value &value);