Write a JSON file in the current working directory. That for example was previously read by readJSON.

Fields:

Example:

def input = readJSON file: 'myfile.json'
//Do some manipulation
writeJSON file: 'output.json', json: input