com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
at com.google.gson.stream.JsonReader.syntaxError(JsonReader.java:1573)
at com.google.gson.stream.JsonReader.checkLenient(JsonReader.java:1423)
at com.google.gson.stream.JsonReader.doPeek(JsonReader.java:587)
at com.google.gson.stream.JsonReader.peek(JsonReader.java:429)
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:181)
at com.google.gson.TypeAdapter.fromJson(TypeAdapter.java:256)
at retrofit2.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:33)
at retrofit2.GsonResponseBodyConverter.convert(GsonResponseBodyConverter.java:23)
at retrofit2.ServiceMethod.toResponse(ServiceMethod.java:117)
at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:211)
at retrofit2.OkHttpCall.execute(OkHttpCall.java:174)
I'm getting
com.google.gson.stream.MalformedJsonException:
when trying to call lipisha methodauthorizeCardTransaction
Below is the full stacktrace
How can i solve it?