Handle both numeric and string values from incoming json.