用fastjson进行 list,String,json之间相互传换

2018-01-02 02:15:51



String转对象,对象便于操作

PieceBean pieceBean = gson.(result,PieceBean.);



String 转 JSON对象,对象便于操作

JSONObject  = JSON.(pieceBean.getContent());


对象转String,便于数据的传输

JSON.toJSONString(map)


  • 2017-12-25 11:07:58

    mogodb 备份

    error connecting to db server: server returned error on SASL authentication