Change JsonResponse to use symfony's encodingOptions which allows options to be changed after construction