What am I doing wrong:
x = ‘{ “name”:“John”, “age”:30, “city”:“New York”}’
y = system.util.json.Decode(x)
y[“age”] = 31
ERROR Line 2: object has no attribute JSON
What am I doing wrong:
x = ‘{ “name”:“John”, “age”:30, “city”:“New York”}’
y = system.util.json.Decode(x)
y[“age”] = 31
ERROR Line 2: object has no attribute JSON
The system function is system.util.jsonDecode(), with jsonDecode all together.
https://docs.inductiveautomation.com/display/DOC80/system.util.jsonDecode
thankyou thankyou!!! my afternoon is much happier now.
I’ve been studying that manual page all day and did not notice my extra .