groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krishnandoss08@gmail.com <krishnandos...@gmail.com>
Subject asset does not produce any output -am i missing something
Date Wed, 10 Oct 2018 10:31:29 GMT
Hi the following lines of code does not produce anything
package com.mds2.automation

import groovy.json.JsonSlurper
def jsonSlurper = new JsonSlurper()
def object1 = jsonSlurper.parseText('{"name" : "abc", "value": "123", "field" : "xyz"}')
def object2 =jsonSlurper.parseText('{"field" : "xyz", "value": "123" ,"name" : "abc"}')

assert object1 instanceof Map

I cant see any output in the console , I would expect a response of 'false'

Mime
View raw message