home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Parse A JSON String In JavaScript

December 2023
Code
const jsonString = `{ "alfa": true }`
const parsed = JSON.parse(jsonString)
console.log(parsed.alfa)
Results
true
═══ § ═══