Task: Write Ruby Hash to JSON File in Correct Format
Task: Write Ruby Hash to JSON File in Correct Format: a task in Terminal-Lego-15k (Harbor dataset). When writing a Ruby hash directly to a file, it does not produce valid JSON format. Instead, it outputs the hash in Ruby's default string representation, which results in incorrect output like key…
The task
When writing a Ruby hash directly to a file, it does not produce valid JSON format. Instead, it outputs the hash in Ruby's default string representation, which results in incorrect output like `key_aval_akey_bval_b`.
Part of PrimeIntellect/Terminal-Lego-15k.