diff options
author | sfan5 <sfan5@live.de> | 2021-03-20 22:06:17 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-03-20 22:06:17 +0100 |
commit | 531e7ef8ebbb9c7e08bf9043d96a44558c7a6d7f (patch) | |
tree | 84d6ab76e46bcdcd06295f68113e909f01500f7d /src/convert_json.h | |
parent | 042131d91d0f61d1252d240aa799f3b12b509cfe (diff) | |
download | hax-minetest-server-531e7ef8ebbb9c7e08bf9043d96a44558c7a6d7f.tar.gz hax-minetest-server-531e7ef8ebbb9c7e08bf9043d96a44558c7a6d7f.zip |
Serialize tool capabilities JSON without whitespace
fixes #11087
Diffstat (limited to 'src/convert_json.h')
-rw-r--r-- | src/convert_json.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/convert_json.h b/src/convert_json.h index d8825acdc..2c094a946 100644 --- a/src/convert_json.h +++ b/src/convert_json.h @@ -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); |