make response valid json for mimetype compat