Issue With JSON Parsing

Summary

The JSON parser is not correctly parsing some values as integers (e.g., 2500000000 and 3500000000)

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Steps to Reproduce

Run

option: 
   Print("Parsed value: {JSON.Parse["2500000000"].AsInt[]}")
   Print("Parsed value: {JSON.Parse["3500000000"].AsInt[]}")

Expected Result

Parsed value: 2500000000
Parsed value: 3500000000

Observed Result

Parsed value: -1794967296
Parsed value: -794967296

Platform(s)

PC

I can confirm this issue! Did many tests here, and looks like any integers that are Exactly 32 bits in length is incorrectly parsed by the JSON module:

Here are Specific Tests:

And Some Fuzzy (Random) Tests:
(My GetBitCount function returns 1 more due to considering sign, so subtracting one for this test)

1 Like

FORT-1049558 has been created and its status is ‘Unconfirmed’. This is now in a queue to be reproduced and confirmed.