an unterminated string never exits the scan loop, and the escape handling double escapes. so \x41 comes back as text and \' throws in JSON.parse.
the literal parser is still a better pick than eval or vm. It would be safer with depth, node count, and size limits, and a leading apostrophe on CSV text fields would stop formula injection
handle grouping lowercases keys, so spotify IDs that differ only by case get merged