json.get() now returns null if the field doesn't exist #1121
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
json.get()
now returnsnull
if the field doesn't exist. Previously, it returned the empty string""
.To Reproduce
Steps to reproduce the behavior:
[h: jobj = "{}"][r: json.get(jobj, "field")]
null
.Expected behavior
json.get
returns an empty string as it did on 1.5.x.MapTool Info
Desktop (please complete the following information):
Additional context
The change to
json.get
could be intended, but we should be aware it is going to break many existing macros.The text was updated successfully, but these errors were encountered: