You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Custom Object Groovy Map

Question
14
Views
0
Comments
edited Apr 8, 2020 6:02PM in Integrations and Extensions

Summary

Grooy Map reading value of a key is returning data with square bracket

Content

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:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!