Skip to content

Instantly share code, notes, and snippets.

@marcgeld
Last active April 14, 2019 21:15
Show Gist options
  • Save marcgeld/8ed7d2a4630989950d9aab9ff14abeaf to your computer and use it in GitHub Desktop.
Save marcgeld/8ed7d2a4630989950d9aab9ff14abeaf to your computer and use it in GitHub Desktop.
Pretty Print JSON (IKEA Tradfri FW Check)
#!/usr/bin/env groovy
import static groovy.json.JsonOutput.prettyPrint
println prettyPrint( new URL ("http://fw.ota.homesmart.ikea.net/feed/version_info.json").getText() )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment