Fix JSON response during response creation