Simplify the output to json