7
score
1.9K
views
yes
status
CC BY-SA 3.0
In GSON, how to work with JSON attributes containing space?
You can parse JSON keys with whitespace with Gson by using SerializedName annotation. Example:
Technical answers from my Stack Overflow history, with source links and licenses.
Showing 1 of 1 answer tagged pojo
Exported May 9, 2026
You can parse JSON keys with whitespace with Gson by using SerializedName annotation. Example: