I am making a call to an external webservice and they return response in json format as shown below. But when I try to parse with gson it throws an error. Also when I validate it against jsonlint.com it shows invalid json format. Now I wondering if I am doing something wrong or they are sending json data in wrong format. If its in correct format then what am I missing to parse it correctly
({"data":[["0",22247,2764,99.96,0,0],["UNDEFINED",3,1,0.04,-2.08,0]],"totalCount": 2})
Error Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 3 path $
Code JsonElement jelement = new JsonParser().parse(data);