added json format option to harlog