fix bad check in json_response
follow up to #68152cb - fix for single file