How to perform 'Write JSON File' in Groovy.
// Task: Write JSON File
// Language: Groovy
def write_json_file() {
// Implementation for Write JSON File
def result = ...; // Initialize variable
// TODO: Implement core logic here
// Step 1: Prepare data
// Step 2: Process Write JSON File
println("Done");
}