Change output type to json