I got the following request from an Android developer:
Would you change the webservice back-end so that it returnes empty
strings for empty fields instead of null.
private OrganizationSearchResult result;
Gson gson = new Gson();
result = gson.fromJson(resultString, OrganizationSearchResult.class);
I dont know what you are using for parsing the json and the JSONObject class in android sdk doesnt do that.
Take a look at the following class
isNULL of the above method.
I think GSON automatically handles the null in json by converting them to java null.