Re: Groovy script to replace Json values via a mapping file

2016-06-07 Thread Antonio Antonelli
willing to help you. Cheers, Antonio On Tue, 7 Jun 2016 at 23:15 idioma wrote: > Hi, > I was hoping to get some feedback from this community on how my attempt can > be improved in any way or whether I am actually heading towards the wrong > direction. > > Thank you so mu

Re: Groovy script to replace Json values via a mapping file

2016-06-07 Thread idioma
Hi, I was hoping to get some feedback from this community on how my attempt can be improved in any way or whether I am actually heading towards the wrong direction. Thank you so much, I. -- View this message in context: http://groovy.329449.n5.nabble.com/Groovy-script-to-replace-Json-values

Groovy script to replace Json values via a mapping file

2016-06-04 Thread idioma
to be returned with the first mapping A = someText: This prints the resulting JSON :{ "field1": "A", "field2": "someText" } I am not sure how I can achieve this and if the ConfigSlurper is the best approach I can use to do lookups/mappings. Can you please advise? Thank you so much, Ilaria -- View this message in context: http://groovy.329449.n5.nabble.com/Groovy-script-to-replace-Json-values-via-a-mapping-file-tp5733231.html Sent from the Groovy Users mailing list archive at Nabble.com.