Update data and convert them to json.
json support.
整個架構都改寫了
測試尚需補完...