Created
August 3, 2016 04:25
-
-
Save kdabir/3d3b101221951cc4edf6090942d3dd48 to your computer and use it in GitHub Desktop.
Parsing Json
This file contains hidden or 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.JsonSlurper | |
def json = new JsonSlurper().parseText(""" | |
{ | |
inline: "json" | |
} | |
""") |
This file contains hidden or 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.JsonSlurper | |
def json = new JsonSlurper().parse(new URL("https://api.endpoint.foo")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment