Write a JSON file in the
current working directory. That for example was previously read by readJSON.
json:
The JSON
object to write.
file:
Path to a file in the workspace to write to.
Example:
def input = readJSON file: 'myfile.json'
//Do some manipulation
writeJSON file: 'output.json', json: input