Add a setJsonOptions method to JsonResponse to allow late option changing

Closes 5532