[Ready][3.9] Use symfony JsonResponse for API