Custom Object Groovy Map
Summary
Grooy Map reading value of a key is returning data with square bracketContent
I'm calling a web service,which is returning the response below.But when I try to read the value of one of teh kes as mentioned below, the response returned has a squre bracket around it, not juts the value being fetched using the key.Is there any other method to get the data without brackets.
ValResult =[[Segment4:0000000, LedgerName:LEDG1, Status:Valid, Segment2:5000000, Segment1:1000, Segment5:00000, Segment3:00000]]
println(ValResult)
[[Segment4:0000000, LedgerName:LEDG1, Status:Valid, Segment2:5000000, Segment1:1000, Segment5:00000, Segment3:00000]]
println(ValResult['Status'])
[Valid]
println(ValResult.getAt('Status'))
Tagged:
1