json.set adds extra '' when setting the value of a key to an empty string #1151
Labels
bug
macro changes
This issue adds or changes macro functions. Extra work is required (testing, wiki, code editor)
tested
This issue has been QA tested by someone other than the developer.
Describe the bug
When using
json.set
to set a value to the empty string, the value is instead set to"
.To Reproduce
Steps to reproduce the behavior:
[r: json.set("{}", "field", "")]
in MapTool 1.5.11 beta 1."''"
instead of""
:{"field":"''"}
{"field":""}
Expected behavior
Setting a field to the empty string doesn't change it to
''
.MapTool Info
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: