对象a赋值到对象b
A a = new A();
B b = JSONObject.parseObject(JSON.toJSONString(a), B.class);
B b= DataUtil.convertion(a, B.class);
字符串转对象
String bindInfoJson = null;
BindInfo info = JSON.parseObject(bindInfoJson, BindInfo.class);
List对象a赋值到List对象b
List<A> aList = new ArrayList();
List<B> bList = JSONArray.parseArray(JSON.toJSONString(aList ), B.class);
List<B> bList = DataUtil.convertionList(aList , B.class);