Groovy web console

subscribe to the feed Subscribe
to this
site
Json Result (via #groovywebconsole)
tweet this snippet Tweet
this
script

Json Result

Published 3 months ago by Anonymous
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
import groovy.json.JsonSlurper
def slurper = new JsonSlurper()

String json = ''' {	"portalReportData": {
  "headers": {
   "xlinked": [],
   "autosomal": ["CARRIER: Bloom's Syndrome", "CARRIER: Canavan Disease"],
   "specialConsiderations": []
  },
  "template": "CARCON",
  "reportTemplateVersion": 3.0
	}

} '''

def person = new JsonSlurper().parseText(json)
print person.portalReportData