What about JSON5 style for JSON5.stringify() in Espruino? #1459
Replies: 4 comments
-
Posted at 2021-05-13 by @gfwilliams Try For parsing, you can just use |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-05-13 by @MaBecker first shot
Ok, no error but no object - whats missing ? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-05-13 by @fanoush that .replace won't work with string values like as for converting - quick and dirty may be |
Beta Was this translation helpful? Give feedback.
-
Posted at 2021-05-13 by @MaBecker Yes, text in json will not be covered .... ok so let's sum it up
So, JSON5 is possible on Espruino devices - thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-05-13 by @MaBecker
JSON
JSON5
Possible workaround to convert standard JSON to JSON5 for .stringify()
But how to convert a JSON5 data string back to a json object in Espruino?
Beta Was this translation helpful? Give feedback.
All reactions