Adding ability to print the json result on one line, not
pretty printed