tree-sitter-json
tree-sitter-json copied to clipboard
Allow only string keys
trafficstars
As per JSON format specification, only strings must be allowed as keys in JSON objects.
Thanks for contributing 🙇
It seems that only strings are allowed as keys in JSON objects 👍. Nice that you added a test as well! However I don't think we need to add a test when simplifying the grammar. We should be removing the test that checks that number is valid as a key in JSON objects but it seems like there isn't any test for this behavior in the parser.
Can you resolve the conflict by regenerating the parser and revert the test so we can get this merged? 🙇