Translated using Weblate (Chinese (Simplified))
[oweals/minetest.git] / src / convert_json.h
index b5831884fa98a7446f7c6c860608a40681c76585..d8825acdc167e95d9c2abbff679131cc7089e721 100644 (file)
@@ -17,12 +17,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef __CONVERT_JSON_H__
-#define __CONVERT_JSON_H__
+#pragma once
 
 #include <json/json.h>
 
-Json::Value                 fetchJsonValue(const std::string &url,
-                                           std::vector<std::string> *extra_headers);
+Json::Value fetchJsonValue(const std::string &url,
+               std::vector<std::string> *extra_headers);
 
-#endif
+std::string fastWriteJson(const Json::Value &value);