Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
23 lines (16 loc) · 424 Bytes

File metadata and controls

23 lines (16 loc) · 424 Bytes
Copy raw file
Download raw file
Outline
Edit and raw actions
sidebar_position 4

JSON

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.

JSON.parse

const msg = JSON.parse('{"hello": "world"}')
// destructure field 'hello'
const { hello } = msg

JSON.stringify

const json = JSON.stringify({ hello: "world" })
Morty Proxy This is a proxified and sanitized view of the page, visit original site.