Remove console log
Handle parsing the json response and outputting lines to stdout