Skip to content

Instantly share code, notes, and snippets.

@afrinjamanbd
Last active June 12, 2022 15:27
Show Gist options
  • Save afrinjamanbd/58ac9fdd101108ca7aa91b8c3225bb98 to your computer and use it in GitHub Desktop.
Save afrinjamanbd/58ac9fdd101108ca7aa91b8c3225bb98 to your computer and use it in GitHub Desktop.
JSON value with single quote error fixed
var json = '{"1440167924916":{"id":1440167924916,"type":"text","content":"It\'s a test!"}}';
var parsed = JSON.parse(json);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment