Handle non-json data correctly