Change JsonResponse to use symfony's encodingOptions which allows options to be changed after construction
Add a setJsonOptions method to JsonResponse to allow changing options after creation