Fix JSON responses.