MalformedJsonException with Retrofit API?

后端 未结 7 821
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-01 14:18

I need send a json to my webservice, json is:

{
    \"Sala\": {
        \"usuario\": \"%@\",
        \"adversario\": \"%@\",
        \"atualizacao\": \"%@\"         


        
7条回答
  •  爱一瞬间的悲伤
    2020-12-01 15:16

    I struggled around a day getting this error and doing what the "correct answer" of this page said so, but after all I figured out my problem, that was assigning the response from an array that was "int" (also my model class was int) to an textView which of course required me to convert it to string the int value. I didn't even required to do the solution of @Nikola Despotoski at all in my case.

提交回复
热议问题