JSON.parse
を2回施す。
raw = '"{\\"id\\":\\"123\\"}"'
once = JSON.parse(raw)
twice = JSON.parse(once)
console.log(twice.id) // => "123"
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
JSON.parse
を2回施す。
raw = '"{\\"id\\":\\"123\\"}"'
once = JSON.parse(raw)
twice = JSON.parse(once)
console.log(twice.id) // => "123"
Register as a new user and use Qiita more conveniently
Go to list of users who liked