Gson Tutorial — Getting Started with Java-JSON Serialization & Deserialization

Gson Tutorial — Getting Started with Java-JSON Serialization & Deserialization

Future Studio

7 лет назад

101,591 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Kumarkumar-gf3kk
@Kumarkumar-gf3kk - 10.07.2023 11:01

Great video . Thanks a lot Appreciate!

Ответить
@subhashmadineni9778
@subhashmadineni9778 - 12.05.2023 03:46

they asked me this exact type of problem in netflix SDE interview, i have no clue what they are talking about. I wish i watched this tutorial before.

Ответить
@Saiyan2003
@Saiyan2003 - 26.09.2022 03:22

Gracias csmr gaaaaaa!!!!

Ответить
@mushfiqfuad249
@mushfiqfuad249 - 22.06.2022 20:13

Thanks a lot. This one is the simplest one.

Ответить
@ProductProOfficial
@ProductProOfficial - 19.11.2021 12:10

That's cool, but what if our json lie on some url. then what would we do?

Ответить
@dimatarasiuk8027
@dimatarasiuk8027 - 08.07.2021 15:30

Maybe I don't understand smth but what the point of json file if you initialize fields in java code. If some data will change in json file you still working with data in created object. I didn't notice the step of reading json data from the file. Could you pls explain how to do that? And thanks for the video

Ответить
@TheWalace10
@TheWalace10 - 20.06.2021 21:53

Thank you! you helped a lot on my test!

Ответить
@CXM-vu3pt
@CXM-vu3pt - 09.08.2020 18:17

Thank you!!

Ответить
@marcotohom3631
@marcotohom3631 - 30.07.2020 22:09

Con el simple hecho de tener subtítulos te has acreditado mi suscripcion. Una genialidad tu forma de explicar.

Ответить
@johnkabiu4418
@johnkabiu4418 - 24.04.2020 10:27

These Germans are good in making educational tutorials. Am a long time Sub of CodingInFlow and today I SUBSCRIBE TO YOURS TOO. KEEP UP AM LEARNING JSON

Ответить
@alperaydin7011
@alperaydin7011 - 05.02.2020 11:42

Can you show List<> class object serialize and deserialize please.

Ответить
@ozcanshalak7280
@ozcanshalak7280 - 24.12.2019 18:17

More than excellent

Ответить
@zikooo84oo
@zikooo84oo - 26.10.2019 08:11

Excellent video thanks sir!

Ответить
@xJustted
@xJustted - 19.09.2019 11:25

Thanks realy helped me=)

Ответить
@ayoubanbara1685
@ayoubanbara1685 - 06.08.2019 22:28

thanks and especially on vertically split screen way I did not know before

Ответить
@marvel438
@marvel438 - 01.08.2019 22:46

So simple. Amazing

Ответить
@ryo3560
@ryo3560 - 20.07.2019 00:13

alguien mas que hable espanol?JAJS me siento solo:(

Ответить
@avotihook
@avotihook - 30.06.2019 11:54

Спасибо, дружище за объяснение!

Ответить
@h0riiz0n97
@h0riiz0n97 - 27.06.2019 12:52

Nao é isso que quero!

Ответить
@sedem_quame
@sedem_quame - 21.04.2019 13:34

This tutorial, is awesome cheers ✨✨✨.

Ответить
@alexm7968
@alexm7968 - 09.03.2019 19:52

Hello and thanks for the nice video! Could i ask you something? If you got and JSON object with 100 attributes is it possible to convert it to a java object where i have only 3 attributes like title,id and date ? Can we somehow match those things ? Or do the Java object has to be exatly the same object like the JSON object ?
Thanks,
 Alex

Ответить
@ThueringerNeuland
@ThueringerNeuland - 06.01.2019 07:14

Ze german accent is strong but it’s a good video (;

Ответить
@lmsg123
@lmsg123 - 16.12.2018 19:48

excelent tutorial and video! Thanks !

Ответить
@mohammedkhalifa8790
@mohammedkhalifa8790 - 11.11.2018 00:51

for what gson ?
to convert my server api json to gson ? and convert gsom to json object again ? lol
someone tell my why ?
why gson ?
for what ?

Ответить
@sumiyak7842
@sumiyak7842 - 02.11.2018 16:54

such a clear vedio....thank u sir........

Ответить
@living_by_watching_old_vods
@living_by_watching_old_vods - 25.06.2018 03:11

amazing...thanks

Ответить
@onionsandwich
@onionsandwich - 24.05.2018 23:27

I now know your email. Mwahahaha !

Ответить
@Mohamed-uf5jh
@Mohamed-uf5jh - 15.05.2018 04:11

Good tuto, thanks

Ответить
@Adyel-YT
@Adyel-YT - 23.04.2018 22:52

Great Video, Saved lot of my time : )

Ответить
@alenmistric6231
@alenmistric6231 - 19.04.2018 23:08

Suppose you have several JSON files and model classes. Any tips on how I could make deserialization more generic in terms of the arguments that method "fromJson" takes in?

Ответить
@peterwanden7285
@peterwanden7285 - 28.03.2018 11:22

Thank you for making this video series. They are very well made, simple to follow and have saved me a lot of time.

Ответить
@hank3339
@hank3339 - 26.03.2018 10:06

I had to use GsonBuiler for the instantiation: Gson gson = new GsonBuilder()
.disableHtmlEscaping()
.serializeNulls()
.create();
cheers!

Ответить
@boiniq
@boiniq - 10.03.2018 22:48

why in the first example the name was the first thing you wrote in gson and in the second it was the last how does this works?

Ответить
@RobertasAnkudovicius
@RobertasAnkudovicius - 20.02.2018 16:47

Bet json with java explanation in all internet. Thank you!

Ответить
@NuiceT
@NuiceT - 19.01.2018 14:21

Wusste es du bist Deutscher xD

Ответить
@nimit8849
@nimit8849 - 11.01.2018 03:18

Excellent!

Ответить
@Anil08901a1206
@Anil08901a1206 - 06.01.2018 06:13

Really Appreciated...bro great video...

Ответить
@nodarmaruashvili567
@nodarmaruashvili567 - 28.12.2017 02:05

How did you format json in UserSimpleWithJson.json file?

Ответить
@cajoblue
@cajoblue - 21.12.2017 00:26

how can i serialize a date attribute that come from a API(webservice) in microsoftFormat

Ответить
@guillaumecerdan1429
@guillaumecerdan1429 - 15.12.2017 16:51

Hi ! I understood and really appreciate your video man :)
But I got an error when I did the same thing as you, I got :
"Could not find method compile() for arguments [com.google.gson:gson:2.8.0]"
But I have :
buildscript {

repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
compile 'com.google.gson:gson:2.8.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

In my build.gradle
Does anyone have an idea please ?
Have a good day !

Ответить
@AdityaKumar-mt1rh
@AdityaKumar-mt1rh - 28.11.2017 08:48

how did u make your transparent background video?

Ответить
@adityapathak7638
@adityapathak7638 - 27.11.2017 12:29

Suppose I have a User Class which have Username(string) and password(string), but while converting this object to json via GSON , i want password to bet get encrypted(say MD5) .
Any Idea how to do that?

Ответить
@user-pu5bs9jd3p
@user-pu5bs9jd3p - 04.11.2017 19:45

dependency for json doesn`t work

Ответить
@shawnmoore2429
@shawnmoore2429 - 02.10.2017 08:53

Anyone know if its possible to get parameter hints/labels like in the video, but for Android Studio? They are very useful.

Ответить
@ChrisHolschuh
@ChrisHolschuh - 27.09.2017 01:31

Great Video!! Thank you!

Ответить
@deontaywilson4624
@deontaywilson4624 - 06.08.2017 21:03

These tutorials have been a godsend. Thank you so much, Norman. Two thumbs up.

Ответить