Allnvrgs1989
unread,Feb 22, 2022, 6:48:52 AM2/22/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rest-a...@googlegroups.com
Hi,
I have a response that looks like this ie. there is a space in the key
{ 'first name' : test }
So i created a response model class like shown below
Class ApiResponseModel {
Private String firstName;
//getters and setters
}
But when i am parsing the response, like
response.getBody().as(ApiResponseModel.class).getFirstName, i am getting a null value. So my question is, how can i get the 'first name' value using this approach?
Thanks for your help.
Regards,
Allen
Sent from my iPhone