| sidebar_position | 4 |
|---|
It's worth mentioning that JSON serialization and parsing is fully supported in DeviceScript.
You can use the JSON object to parse and stringify JSON objects, just like in JavaScript.
const msg = JSON.parse('{"hello": "world"}')
// destructure field 'hello'
const { hello } = msgconst json = JSON.stringify({ hello: "world" })