Groovy web console

subscribe to the feed Subscribe
to this
site

123

Published 2 weeks ago by 123
Actions Execute script  ▶ Edit in console Back to console Show/hide line numbers View recent scripts
def codes = '''302672848
302677466
302667196
302627444
302629826
302642340
302697534
302689856
302701850'''
def template = '''
            {
                "customer_code": "%s",
                "event_name": "main_test_0",
                "event_type": "BANNER",
                "properties": {}
            },'''

def res=""
codes.split("\n")each {
    res += sprintf(template, it)
}


println res