Technically speaking, the following JSON is considered invalid:
{
color: "blue",
size: 14
}
This is because according to the specification, property names like "color" and "size" should be enclosed in quotes, like this:
{
"color": "blue",
"size": 14
}
Despite this requirement, it's common to find web services claiming to return JSON without quoted property names. In addition, JavaScript developers often do not quote their property names since it's not mandatory in JavaScript.
Is there any discussion or proposal to modify or create a new version of JSON that allows for unquoted property names? It would seem like a more intuitive way to work with the format, but as of now, no official adoption of this idea has been suggested.