新增函数json_write