able to output json to the ui