Parse A JSON String In JavaScript

December 2023
const jsonString = `{ "alfa": true }`
const parsed = JSON.parse(jsonString)
console.log(parsed.alfa)
Output:
true
end of line