curl_json: Support reading from a unix socket