Android Object 转 Json

xiaoxiao2021-02-27  486

1. Object 转 Json

String str = new Gson().toJson(obj)

2.Json 转 Obj

CardModel card = JSON.parseObject(jsonMsgOut.info.toString(),CardModel.class);

转载请注明原文地址: https://www.6miu.com/read-2107.html

最新回复(0)