Change data type to json