check if input file exists
jsonify the http_request results