interface.html: No Util.writeStorageJSON
?
#7758
-
Unless I missed something, there's a |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, you're right, there is no writeStorageJSON - I guess we could add one... But as you suggest:
Is totally fine to do - the reason we have |
Beta Was this translation helpful? Give feedback.
Yes, you're right, there is no writeStorageJSON - I guess we could add one...
But as you suggest:
Is totally fine to do - the reason we have
Util.readStorageJSON
is that when writing JSON to files Bangle.js writes a more relaxed, memory-efficient format (eg{a:1,b:2}
rather than{"a":1,"b":2}
and just usingJSON.parse
(eg reading rather than writing) wouldn't work.