Convert set data to json