HF RL Explorer

Fastjson2 fails to parse scientific-notation numbers with type suffix

Fastjson2 fails to parse scientific-notation numbers with type suffix: a task in LegoFlow-SWE (Harbor dataset). When parsing JSON that contains a numeric value expressed in scientific notation and followed by a type suffix (e.g., 1.2E-4D for Double ), the parse method throws a JSONException with…

The task

When parsing JSON that contains a numeric value expressed in scientific notation and followed by a type suffix (e.g., `1.2E-4D` for `Double`), the `parse` method throws a `JSONException` with the message `illegal number`. This prevents correct deserialization of data that was serialized by fastjson1, which uses the…

Part of Lego-X/LegoFlow-SWE.