JSON Context
JSON helper methods inside rules engine
- Context Variable: json
- This is nothing but an instance of JsonSlurper
Examples
def object = json.parseText('{ "name": "John Doe" } /* some comment */')
def object = json.parseText('{ "myList": [4, 8, 15, 16, 23, 42] }')
def object = json.parseText '''
{ "simple": 123,
"fraction": 123.66,
"exponential": 123e12
}'''
Updated about 3 years ago