Fix json parsing for non numeric numbers (nan and inf)