Genson 介绍
Genson 是一个轻量级的 Java 库用来处理 JSON 数据,提供了完全的数据绑定和 Java 泛型支持。
示例代码:
Genson genson = new Genson(); String json = genson.serialize(777.777); // the output will be 777.777 genson.serialize(true); // output is true (without quotes) genson.deserialize("777", int.class); // deserializes it into 777 genson.deserialize("777.777", Object.class); // will return 777.777 (a double) genson.deserialize("null", Object.class); // will return null;
Genson 官网
http://code.google.com/p/genson/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。