You can parse JSON keys with whitespace with Gson by using SerializedName annotation.
Example:
java
@SerializedName("Date of Event") public String dateOfEvent;
You can parse JSON keys with whitespace with Gson by using SerializedName annotation.
Example:
@SerializedName("Date of Event") public String dateOfEvent;
Originally posted on Stack Overflow. Public user contributions are licensed under Creative Commons Attribution-ShareAlike.