Invalid JSON handler added for getBynames.