duration output in json format