1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Merge pull request #12603 from GodotExplorer/beautify-json

Add indent and sort keys support for JSON.print
This commit is contained in:
Rémi Verschelde
2017-12-06 23:53:05 +01:00
committed by GitHub
4 changed files with 46 additions and 19 deletions

View File

@@ -719,7 +719,7 @@ protected:
public:
static _JSON *get_singleton() { return singleton; }
String print(const Variant &p_value);
String print(const Variant &p_value, const String &p_indent = "", bool p_sort_keys = false);
Ref<JSONParseResult> parse(const String &p_json);
_JSON();