Parsing Json url using async

前端 未结 5 922
花落未央
花落未央 2021-01-25 23:53

I get exceptions when running this code. I want to parse the url which is an array of json objects:

package com.example.compsci_734t;

import java.io.BufferedRea         


        
5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-26 00:22

    Hi its due to some problem in the webservice maybe due toh the encoding problem its not your or android's problem. Just as you get response in that string just replace the character you get with "".

    response= response.replace("","");

    and then do your parsing after this. It worked for me. I hope it works for you also.....

提交回复
热议问题