I have string like shown below:
{"data":"{\"methodName\":\"matchRequest\",\"arguments\":[{\"matchId\":2963,\"gamerName\":\"pro100_Ocean\",\"gamerId\":\"4c04d9f0-c1e7-410f-8ad8-a95922556bbd\",\"gamerFullName\":null,\"gamerPhotoUrl\":\"data\\\\user\\\\4c04d9f0-c1e7-410f-8ad8-a95922556bbd\\\\profile\\\\cropped3649162562321249118.jpg\",\"gamerRaiting\":1,\"gamerCardScore\":0,\"correctAnswerScore\":50,\"incorrectAnswerScore\":-50,\"isBot\":false,\"myCardScore\":0}],\"identifier\":\"00000000-0000-0000-0000-000000000000\"}"}
I take the text from the backend, and I need to take the data. How do I do it?
UPDATE
I want to use Gson, and I created Pojo class like below, but I needed to take the values as a string in the date key like json.(Perhaps you didn't understand me)
data class RequestGameModel (
@SerializedName("messageType")
@Expose
var messageType: Int? = null,
@SerializedName("data")
@Expose
var data: String? = null)