Return JSON instead of numbers for getType