Java Google Json (Gson) Serializing Inner classes
2015-06-15 17:17
204 查看
Serializing inner classes
Gson can serialize inner classes and static nested classes. The detailed example below demonstrates the following things.Serializing class containing static nested class
Serializing class containing non static nested class (Inner class)
De-serializing json to a class containing static and non static inner class
Serializing static nested class (without the enclosing type)
Serializing non static nested class (without the enclosing type)
De-serializing json to a static nested class (without the enclosing type)
De-serializing json to a non static nested class (without the enclosing type)
The Example
?
?
相关文章推荐
- javascrip应用
- myeclipse工作空间开不开怎么办
- java 验证码 jfinal 验证码
- java泛型
- myeclipse cannot connect to vm
- 对java中random的思考
- Spring 系列: Spring 框架简介
- java.sql.SQLException: Connection is closed
- java 记录一下socket的server与clien
- java 时间处理
- java 反射访问成员属性
- Java for LeetCode 220 Contains Duplicate III
- 网页动物园2.0发布,经过几个月的努力,采用JAVA编写!
- LeetCode_32---Longest Valid Parentheses
- eclipse中格式化代码快捷键Ctrl+Shift+F失效
- java中static作用详解
- eclipse的build path
- JAVA基础(一)
- eclipse上的java编程助手软件的使用与配置
- java 后台开发流程