This project is read-only.
1
Vote

System.Json: Add support for parsing unquoted object keys

description

The following json throws an exception on parse:

{test:1}

while

{"test":1}

works. I know that this is not standard JSON. But a lot parsers like the de facto standard Json.Net will parse that without any problem.

If you hand write you JSON files. Like for tests in example, it is very ugly and verbose to put two quote around simple properties. Simple means in word boundary.

It is a simple change and I see no harm in it. Expect from making System.Json more user friendly.

comments