Converts mixed data to json