简体   繁体   中英

Get json from request body by gson

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 
        }
        ...
   };

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM