79102101

Date: 2024-10-18 12:39:53
Score: 2
Natty:
Report link

You need to convert json2 to Map or ArrayList first, something like:

def json = new groovy.json.JsonSlurper().parseText(json2.toString())

and then you will be able to use this json in the JsonBuilder class.

More information:

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Ivan G