Use Retrofit to parse JSON in Kotlin Android app

preview_player
Показать описание


Рекомендации по теме
Комментарии
Автор

This is great... I like how thorough and clear you are in your explanations!

helioschan
Автор

Nevermind, I used the .java file and it worked fine! Thank you my friend

caiozowyecamachocabral
Автор

Wonderful !!! You are a genius .This is the only videos on Youtube that actually explained in details retrofit with Kotlin. Thanks sir .Still looking forward for a video where you can make something on CRUD operation in android using Retrofit and Kotlin

taiwoojo
Автор

No one would ever tell me Retrofit instantiates and implements an interface with that piece of code... deeply thanks to you

corazondecocodrilo
Автор

It's my first day with JSON and I initially started out with Moshi, it all worked great but the problem was, they only explained how to deal with JSON array and not JSON objects. I have been jumping from one tutorial to another trying to parse this Star wars API available to experiment with and no one even came close to the explanation you provided, I am going through your content and to be honest, it's nothing less than a gold mine for me. Thanks to you, I not only understood the problem I was having parsing the JSONobject but also understood the how it's all working and I was able to parse the object using Moshi. It's the best kind of learnimg where you learn the basics and then apply it yourself, your way on a different environment and not just 'code along'. Thank you so much!

norulesprateek
Автор

Man ! You saved my life today and prob. my future XD...thank you very much !!! you're awesome!

corrector
Автор

Estimated Brand. I did saw thousands of videos, but never make a comment, this is my first, I want to thank you because this was the only video that clarify me the retrofit use
Great video but more, great explanation

carlosandresfigueroa
Автор

You are awesome ! This video solved my problems. thank u..

ahmadpython
Автор

thx for your guides! those are awesome! However, i have a quick question. Would you please tell how to pass for example only species into recycler view and not the entire list of parameters from PlantsDTO, how to build an Adapter if we have such json that needs to be implemented as two separate data classes?

hasavain
Автор

Hello Mr Jones, Have you also tried the same json on Moshi library. please try it. I want know how would it work

siddharthchughs
Автор

how do i do a url manipulation in kotlin ?

stole
Автор

I wrote the same code and got the following error:

var retrofitInstance: Retrofit?

"Property must be initialized or be abstract"
Why? :(

caiozowyecamachocabral
Автор

thanks for sharing. I come from Javscript + php background, this kotlin slash java are giving me such big headaches just to understand the whole structure of a simple http request. Your explanation help a lot. At least for Get method. How about Post, where post requires a body?

personalchaoyu
Автор

Why did you use @SerializedName("plants") var plants? Why do you need the annotation when the var name is already "plants"?

vestlen
Автор

I'm using retrofit in my login app when i post login details it sends a response which doesn't have array. it sends username and email as a response. how to store those string and display in next screen?

adioslabs
Автор

Can you help me out?. I'm using a recycerview and am making an api call that puts a large amount of data(an object with objects inside of it and arrays inside of the objects) into one viewholder but I only want a specific part (one array in my viewholder)...How can I do this?
I've tried changing the api call but haven't been able to do it. Any help would be really appreciated!

cosovic
Автор

Can you do a video on datepicker and how to persist? So the dialogue picker will show you the date you chosen.

randy
Автор

Ok thts for GET request but i have Post request so what changes i have to make?

ViralShortsOfDuniya
Автор

how do you put this in a recyclerview?

jdavid