Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
5.9.1
-
Windows
-
8616b2112c0f24f71892488cefb146ae3505da9e
Description
When using QJsonDocument::fromJson(), it fails to parse special number such as "0E-8".
Culprit JSON could look something like:
{ "num": 0E-8 }This is a regression from 5.6.2 to 5.7.1. It works in 5.6.2 but in no versions after that (5.8, 5.9). QJSEngine can properly parse the same JSON code, so the problem lies in QJsonDocument. Online JSON validators can also validate the given JSON as proper.
Steps to reproduce:
- Run attached sample
- EXPECTED: Sample runs fine without errors
- ACTUAL: Sample fails to parse the given JSON with "illegal number" (7) error
Attachments
Issue Links
- is replaced by
-
QTBUG-61350 QJsonDocument can not parse, If exponent part is upper E and number is 0
-
- Closed
-