fixed a symfony2.1>2.2 JsonResponse Issue