添加gson依赖
Gson gson = new Gson();
添加GSON 格式化工具
到此 Gson格式化工具已经安装完成
使用
json输入或者粘贴进输入框
点击右上角的Format 可以自动格式化
点击ok
会自动生成如下代码
package com.lanyu96.mvpdemo.Demo02;
public class material {
/**
* bosType : 557E499F
* propertyType : inventory
* material : {"id":"CAQSnI1yS3y7kBAEFYcDG0QJ5/A="}
* isControl : false
* CU : {"id":"00000000-0000-0000-0000-000000000000CCE7AED4"}
* orgUnit : {"id":"CzuVLM5uTZyW//G18vwJ08znrtQ="}
* unit : {"id":"gw5fUwEOEADgAAsNwKgSOFuCXFc="}
* defaultWarehouse : {"id":"tVXOfvNuRn6cdCtOwsfeurvp+K4="}
* qualityOrg : {"id":"zxFY0emRR/2vkvnRna8tPcznrtQ="}
* isNegative : false
* isBatchNo : true
* isLotNumber : true
* IsBarcode : true
* isSequenceNo : true
* IsCompages : true
* isPeriodValid : true
* isCheck : true
* reservationDate : 2<