Skip to content

Instantly share code, notes, and snippets.

@Vunovati
Created July 20, 2015 09:02
Show Gist options
  • Save Vunovati/4e68277d6c5b79b445bb to your computer and use it in GitHub Desktop.
Save Vunovati/4e68277d6c5b79b445bb to your computer and use it in GitHub Desktop.
Extract json from file and lint it
jsonlint <(sed -n '/^{/,/^}/p' filename | sed 's/^}/},/g')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment