Task: Fix the JSON Double-Parsing Bug
Task: Fix the JSON Double-Parsing Bug: a task in Terminal-Lego-15k (Harbor dataset). A common JavaScript bug occurs when using libraries like jQuery's $.get() or $.getJSON() to fetch JSON data. These methods automatically parse the JSON response into a JavaScript object. If you then call…
The task
A common JavaScript bug occurs when using libraries like jQuery's `$.get()` or `$.getJSON()` to fetch JSON data. These methods automatically parse the JSON response into a JavaScript object. If you then call `JSON.parse()` on the already-parsed object, JavaScript implicitly calls `.toString()` on it first, converting…
Part of PrimeIntellect/Terminal-Lego-15k.