HF RL Explorer

Task: Pretty-Print JSON Using Node.js

Task: Pretty-Print JSON Using Node.js: a task in Terminal-Lego-15k (Harbor dataset). Write a Node.js script that reads a JSON file, modifies a key, and writes the updated JSON back to a file with proper pretty-print formatting (indented with 2 spaces).

The task

Write a Node.js script that reads a JSON file, modifies a key, and writes the updated JSON back to a file with proper pretty-print formatting (indented with 2 spaces).

Part of PrimeIntellect/Terminal-Lego-15k.