Get number from string in JSON.number

Added parsing of string to get optional number in JSON.number. This is to match the current non optional JSON.numberValue