JSON Parsing | Gson | Android

preview_player
Показать описание
In this video we will be looking at how to parse incoming JSON from an API or simply using a JSON string. We will be using GSON library by Google which makes our life a hell simpler as compared to the traditional way of using Java way of JSON parsing.
Gson is a Java library that can be used to convert Java Objects into their JSON representation and vice-versa. It provides simple toJson() and fromJson() methods to convert Java objects to JSON and vice-versa.

———————————————
What I use
———————————————

#yoursTruly #gson #json #parsing #jsonparsing #android #java #programming #tutorial #howto
Рекомендации по теме
Комментарии
Автор

Hi, I just wanted to say thank you very much for this video. It's amazingly helpful and I learned a lot how to use Json!!! Thank you!!

zlkcppw
Автор

Hey actually I want to read some JSON which is stored in my raw directory and I did it. But actually I want to know how can I change the content of that JSON file ? I wanna replace some values of particular keys programmatically so please help me

sushantpatil
Автор

Thank you so much. Your class was awesome!

DiegoPenteado
Автор

please provide a tutorial for a local json file(which will store app specific data using application data folder, located in Android/data/<package_name> ) using Gson. and how to use CRUD(Create, read, update and delete) with that file.

omkarpawar
Автор

hi if my api comes with api key, how do i place it

aldeen