HF RL Explorer

Handle Newlines in JSON Strings

Handle Newlines in JSON Strings: a task in Terminal-Lego-15k (Harbor dataset). When working with JSON data in JavaScript, you may encounter issues when the JSON string contains newline characters. The problem arises because a literal \n in a JavaScript string is interpreted as an actual newline…

The task

When working with JSON data in JavaScript, you may encounter issues when the JSON string contains newline characters. The problem arises because a literal `\n` in a JavaScript string is interpreted as an actual newline character, which is invalid within a JSON string value.

Part of PrimeIntellect/Terminal-Lego-15k.