The fact is that sometimes web developers clumsily write json as a result it turns out that for 1 element there is a valid "data" parameter, and for 2 there is no result when using GSON an application crashes. Is there a way to skip if gson can't get the data?
Here Android Studio swears writes Cannot resolve symbol 'PhotosUrls'
@SerializedName("photosUrls") public List<PhotosUrls> photosUrls; This is json
"photosUrls":[ "https://buzzar.s3-us-west-1.amazonaws.com/v1.0/public/images/1481001023663-78155.jpg" ]
Gson gson = new GsonBuilder().serializeNulls().create();- Yuriy SPb ♦