adding category to JSON response