trying to format output to json