Inconsistent API behavior of google-gson. Please refer to https://code.google.com/p/google-gson/issues/detail?id=457