Home > Blockchain >  Get json from request body by gson
Get json from request body by gson

Time:12-28

How I can get json request body?

   App.getApi().method(data).enqueue(new Callback<Obj>() {
        @Override 
        public void onResponse(Call<Obj> call, Response<Obj> response){
             // print here 
        }
        ...
   };

CodePudding user response:

If you are trying to print request / response while using retrofit you can enable logging check this article for same.

  • Related