Deserializing JSON: GSON and Java

preview_player
Показать описание
Use GSON library in IntelliJ with Java to deserialize a JSON file. Explicitly extracting values from the JSON file, which makes sense when the JSON format does not map well onto your object structure.
Рекомендации по теме
Комментарии
Автор

Nice vid. I got many information in short time. Thanks.

szabonandi
Автор

thank you so much. I've got a full picture of how the whole process works!

_a-g_
Автор

Thank you so mush, it was really helpful!!!

qw
Автор

Why didn't you get the JsonObject" exception when using getAsString()? I got that error, and am seeing others online get it too

kyleryxn
Автор

Nice!
But how can I read an explicit Index from array? example : just wanna print out "Rex" from the ArrayList?

thomasmartin
Автор

What if my json array doesn't have a name, like the following example?
[ {...}, {...}, {...} ... ]

It throws Not a JSON Object. My JSON file is correct, it's part of a job interview test.

ChrystanFRz
Автор

and what about consuming json from an api rest eg

arturorodriguez
Автор

Sir, what is an JSON Element in a JSON file ?

shankarraj
visit shbcf.ru