In part 3 of the GSON series we are going to serialize and deserialize Lists and Arrays and learn how to parse a JSONarray directly into an ArrayList by creating a Type with the TypeToken class.
Watch the whole playlist:
Source code, dependencies, instructions etc:
____________________
❗ Subscribe to the channel:
⏯ Watch more tutorials:
㊙ Help translating the videos:
💚 Support the content:
💬 Join the Discord chat:
🎧 Audiobooks and podcasts for programmers:
👶 How to get started with Android development:
📣 Follow Coding in Flow on social media:
Facebook:
Instagram:
Twitter:
Blog:
Nguồn:https://mcitmc.org/
Xem Thêm Bài Viết Khác:https://mcitmc.org/cong-nghe/
richtig gutes video!! ich hatte nicht so richtig ahnung wie ich eine json überhaupt lese. nach dem video kann ich es sogar schon benutzen und alles damit machen was ich wollte!!! awesome
👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍
05:19 How dare you say that? you make the best android tutorials on youtube
Awesome
Very good tutorial, a lots of good stuff that helped me so much
how can i retrieve all the value and past it into recycleview
Awesome tutorial , one thing can you explain how to access family array data in employee class using geters in main activity
Thanks you!!
Awesome tutorial,
what about if i wanna parse json from a url, which has an array in 1 of its objects, copy and paste it into my project and then save it into sqlite ?
For example : If you have 1 json object which is a string array, how to handle that
Something like that :
"title": "Dawn of the Planet of the Apes",
"image": "https://api.androidhive.info/json/movies/1.jpg",
"rating": 8.3,
"releaseYear": 2014,
"genre": [
"Action",
"Drama",
"Sci-Fi"
]
},
Our wife 😂😂lol
I would like to set an object with the key in array JSON array, like this
family = [
10: {
name : "hello",
desc : "hello this is another thing",
}
25: {
name : "abc",
desc : "abcx",
}
]
how to deserialise JSON file that putted in localy ???
great video , thankyou sir ,, it is really helpful for us, Sir I have a question about Service and AsyncTask ,, When we should use..
if i am downloading a 5mb file .. then what I should use AsyncTask or Service… Plz reply me..
wow hello there … this is some deep stuff for me of course thanx man for your fine work .
wow, good job!