You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the backslash is consumed, but the to-be-escaped character remains
whitespace U+000c (formfeed) is illegal
Godot treats it as regular whitespace
"Unicode parsing error" are only printed to console, but parse still returns error code OK
usually seems to ignore the invalid characters
I updated the documentation via #66120 to make these limitations more transparent. But they should probably be tackled in the long-term.
Some of these are more severe than others (the crashes probably being the biggest issue!), so I'll let the core devs decide how to prioritize each of these findings.
Steps to reproduce
Run the MRP and observe the console output. A log file is additionally written, but does not include engine error messages!
Files in test_parsing that start with c are skipped since they crash, but can be renamed to reproduce the crashes.
Godot version
4.0.dev (63c0dc6)
System information
Windows 10
Issue description
I ran the JSONTestSuite (test_parsing directory) using Godot's
JSON.parse
and have following findings:JSON.stringify/parse
#66117:["",]
and object{"":"",}
123
followed by a null byte)\
escape an emoji, tab,x
,a
, orU
-> Disallow invalid escape sequences inJSON.parse
#66170OK
I updated the documentation via #66120 to make these limitations more transparent. But they should probably be tackled in the long-term.
Some of these are more severe than others (the crashes probably being the biggest issue!), so I'll let the core devs decide how to prioritize each of these findings.
Steps to reproduce
Run the MRP and observe the console output. A log file is additionally written, but does not include engine error messages!
Files in
test_parsing
that start withc
are skipped since they crash, but can be renamed to reproduce the crashes.Minimal reproduction project
json-unit-tests.zip
Also includes a
log.txt
if you do not intend to manually run the project.The text was updated successfully, but these errors were encountered: