discomarathon / google-gson

Automatically exported from code.google.com/p/google-gson
0 stars 0 forks source link

SerializedName should allow Java reserved words in JSON #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
See
http://groups.google.com/group/google-gson/browse_thread/thread/085ae0279f57b8e9
?hl=en

Original issue reported on code.google.com by inder123 on 5 May 2009 at 11:37

GoogleCodeExporter commented 9 years ago
Fix submitted in r426.

Original comment by joel.leitch@gmail.com on 24 May 2009 at 10:32

GoogleCodeExporter commented 9 years ago
SerializedName should allow '-' too.

@SerializedName("font-size")
private Integer fontSize;

Original comment by zhouyanm...@gmail.com on 24 Aug 2009 at 11:06

GoogleCodeExporter commented 9 years ago

Original comment by inder123 on 24 Aug 2009 at 5:20

GoogleCodeExporter commented 9 years ago
Fixed in r455.

Added a new default naming policy with dashes in r456.

Original comment by joel.leitch@gmail.com on 29 Sep 2009 at 6:46