Created
November 20, 2019 19:58
-
-
Save kousen/b619407bb02d2bffd4be191d2e4bc926 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.json.* | |
String jsonTxt = 'http://api.open-notify.org/astros.json'.toURL().text | |
def json = new JsonSlurper().parseText(jsonTxt) | |
println "There are ${json.number} people in space" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment