renamed method get arg to output. use output=json for json.