diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-06-11 15:56:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-11 15:56:59 +0200 |
commit | 6107d9e180a51e3c9feb4fe8c818321c292ff86b (patch) | |
tree | b68193719f071aa98f38bb2cefc182b953b10963 /core/core_bind.cpp | |
parent | e82a1113abbb72504e9b12a131738bedb40d3a28 (diff) | |
parent | 09a905ca8066c86951b23023a9e1950f277ae8f4 (diff) | |
download | redot-engine-6107d9e180a51e3c9feb4fe8c818321c292ff86b.tar.gz |
Merge pull request #34566 from Heikki00/34541_to_json_precision
Increased String::num default decimal precision
Diffstat (limited to 'core/core_bind.cpp')
-rw-r--r-- | core/core_bind.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/core_bind.cpp b/core/core_bind.cpp index fe0166d0e6..81d229ae92 100644 --- a/core/core_bind.cpp +++ b/core/core_bind.cpp @@ -2420,12 +2420,12 @@ Variant JSONParseResult::get_result() const { } void _JSON::_bind_methods() { - ClassDB::bind_method(D_METHOD("print", "value", "indent", "sort_keys"), &_JSON::print, DEFVAL(String()), DEFVAL(false)); + ClassDB::bind_method(D_METHOD("print", "value", "indent", "sort_keys", "full_precision"), &_JSON::print, DEFVAL(String()), DEFVAL(false), DEFVAL(false)); ClassDB::bind_method(D_METHOD("parse", "json"), &_JSON::parse); } -String _JSON::print(const Variant &p_value, const String &p_indent, bool p_sort_keys) { - return JSON::print(p_value, p_indent, p_sort_keys); +String _JSON::print(const Variant &p_value, const String &p_indent, bool p_sort_keys, bool p_full_precision) { + return JSON::print(p_value, p_indent, p_sort_keys, p_full_precision); } Ref<JSONParseResult> _JSON::parse(const String &p_json) { |