@Grapes( @Grab(group='com.google.code.gson', module='gson', version='2.1') ) import com.google.gson.JsonParser import groovy.json.JsonOutput def feed = 'https://graph.facebook.com/136284706423146/feed?access_token=AAACEdEose0cBAAVRXgYnx5ZA24b9HK9ROQRSJN4EoSZBU8xbI0ZAE9bJmEm6lf2kF9yPcr8t74nuFNKdABNoL88Mc8F9jEpU70Y17O9CpBucO00TbJq' def json = new JsonParser().parse(feed.toURL().text) println JsonOutput.prettyPrint(json.toString())