Add backward compatibility for JsonResponse