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-v

Groovy script to replace Json values via a mapping file

2016-06-04 Thread idioma
Hi, I am fairly new to Groovy and I have been struggling with this task for a while and wondered whether it can be easily achieved by using the ConfigSlurper. I need to read a mapping file, which looks like the following: A some text A2 (I can have some freedom in amending the internal structure