Paste your JSON object here
JS version appears here
What is JSON Object Literal?
JSON object literal has the following syntax rules:
- keys must be strings;
- values can be strings, numbers, objects, arrays, true, false or null.
Don't like an online tool to convert JSON to JS?
Install a CLI tool json-to-js by running
npm i -g json-to-jsand use it as follows:
pbpaste | json-to-js | pbcopyCopy your JSON, run this snippet and paste a JS object, ready to be used in your code.