Odin
Odin copied to clipboard
core:encoding/json parser fails on single character keys
The included JSON parser of core:encoding/json fails to handle single-character keys in the JSON5 specification mode.
import "core:encoding/json"
test := "{a:1}";
_, error := json.parse(transmute([]u8)test, .JSON5);
// error has type .Expected_Colon_After_Key
Larger keys work fine, and of course single-character keys in regular JSON (quoted) work fine.
Hello!
I am marking this issue as stale as it has not received any engagement from the community or maintainers 120 days. That does not imply that the issue has no merit! If you feel strongly about this issue
- open a PR referencing and resolving the issue;
- leave a comment on it and discuss ideas how you could contribute towards resolving it;
- leave a comment and describe in detail why this issue is critical for your use case;
- open a new issue with updated details and a plan on resolving the issue.
The motivation for this automation is to help prioritize issues in the backlog and not ignore, reject, or belittle anyone..