HF RL Explorer

game save files: fix bug

game save files: fix bug: a task in smol-software-harbor (Harbor dataset). Save files of players whose names contain quotes are corrupt JSON: src/json.lua writes strings without escaping them (the quotes test fails). Escape double quotes, backslashes and control characters ( \n , \r , \t with…

The task

Save files of players whose names contain quotes are corrupt JSON: `src/json.lua` writes strings without escaping them (the `quotes` test fails). Escape double quotes, backslashes and control characters (`\n`, `\r`, `\t` with their short forms, any other control character as `\u00XX`). Run `lua tests/run.lua`.

Part of efederici/smol-software-harbor.