More fixes for json parsing for non numeric numbers (nan and inf)