douglascrockford/JSON-java — Issue #36: Hexadecimal values always parsed as int
Author: magicl
Created: 2011-11-24 10:54:16+00:00
State: open

Hi,

If I have an object as this:

{
value: 0xFFFFFFFF
}

then 'value' reads as 0 even when read using getLong(..). The reason for this is the stringToValue function where hexadecimal values are always parsed using Integer.parseInt. I have fixed this locally, but please also fix it here :)

-Øivind