parse_json("{1:0}")
returns null
because "{1:0}"
is not valid JSON. The specification does not allow numbers as keys, only strings.
parse_json("(1:0)")
is also invalid not only for the same reason, but also because the JSON specification does not have any ()
.
If you want to save a container which has numbers as keys, use an array, or use a dictionary where keys are converted to string.