Skip to content

Instantly share code, notes, and snippets.

@jewzaam
Created March 4, 2015 21:56
Show Gist options
  • Save jewzaam/358ec9f633b34bf97788 to your computer and use it in GitHub Desktop.
Save jewzaam/358ec9f633b34bf97788 to your computer and use it in GitHub Desktop.
cleanup json
sed 's/\([ ]*\)\([^ :]*\)[ ]*:[ ]*\([^,]*\).*/\1"\2": "\3",/g' | sed 's/"{",/{/g' | sed 's/"\[",/[/g' | sed 's/""/"/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment