Skip to content

Instantly share code, notes, and snippets.

@kldkv
Last active January 14, 2018 20:44
Show Gist options
  • Save kldkv/fe9089fd1674f7ec6eab3cb5e74e79a6 to your computer and use it in GitHub Desktop.
Save kldkv/fe9089fd1674f7ec6eab3cb5e74e79a6 to your computer and use it in GitHub Desktop.
JSON.parse(a.replace(/(\w+)\s?:/g, '"$1":'))
JSON.stringify(eval(mystr))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment