Task: Convert a Bytes Array with Python Dict Syntax into JSON Format
Task: Convert a Bytes Array with Python Dict Syntax into JSON Format: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that converts a bytes string containing Python dictionary syntax (with single quotes) into valid JSON format. The bytes string represents data that…
The task
You need to write a Python script that converts a bytes string containing Python dictionary syntax (with single quotes) into valid JSON format. The bytes string represents data that looks like JSON but uses single quotes instead of double quotes, which makes it invalid JSON.
Part of PrimeIntellect/Terminal-Lego-15k.