Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
Hisham Muneer
Watch all videos of this series: https://www.youtube.com/playlist?list=PLgjt1h_kabFebUn1anGYZ6_Tfkw64Ww12
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
updated 8 years ago
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
Watch the full video series: https://www.youtube.com/playlist?list=PLgjt1h_kabFcBZbjpKtNYvpsr3gI7cF49
Throughout the series we will cover the following topics:
What is JSON?
View Binding
ViewModels and Live Data
Creating POJO's
Json Parsing
HTTP Calls in Android
Json Parsing Step by Step
Coroutines and suspended functions
Google's GSON
Retrofit
GSONConverterFactory
Glide
POJO Plugin
Source code for the project: https://github.com/hishamMuneer/JsonParsingDemo
Deck used can be downloaded from here: https://jsonparsingdemo-cec5b.firebaseapp.com/Android%20-%20JSON%20Parsing%20demo%20deck.pdf
Json end point urls:
1. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesDemoItem.json
2. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesData.json
All stuff at one place: https://jsonparsingdemo-cec5b.firebaseapp.com/
Watch the full video series: https://www.youtube.com/playlist?list=PLgjt1h_kabFcBZbjpKtNYvpsr3gI7cF49
Throughout the series we will cover the following topics:
What is JSON?
View Binding
ViewModels and Live Data
Creating POJO's
Json Parsing
HTTP Calls in Android
Json Parsing Step by Step
Coroutines and suspended functions
Google's GSON
Retrofit
GSONConverterFactory
Glide
POJO Plugin
Source code for the project: https://github.com/hishamMuneer/JsonParsingDemo
Deck used can be downloaded from here: https://jsonparsingdemo-cec5b.firebaseapp.com/Android%20-%20JSON%20Parsing%20demo%20deck.pdf
Json end point urls:
1. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesDemoItem.json
2. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesData.json
All stuff at one place: https://jsonparsingdemo-cec5b.firebaseapp.com/
Watch the full video series: https://www.youtube.com/playlist?list=PLgjt1h_kabFcBZbjpKtNYvpsr3gI7cF49
Throughout the series we will cover the following topics:
What is JSON?
View Binding
ViewModels and Live Data
Creating POJO's
Json Parsing
HTTP Calls in Android
Json Parsing Step by Step
Coroutines and suspended functions
Google's GSON
Retrofit
GSONConverterFactory
Glide
POJO Plugin
Source code for the project: https://github.com/hishamMuneer/JsonParsingDemo
Deck used can be downloaded from here: https://jsonparsingdemo-cec5b.firebaseapp.com/Android%20-%20JSON%20Parsing%20demo%20deck.pdf
Json end point urls:
1. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesDemoItem.json
2. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesData.json
All stuff at one place: https://jsonparsingdemo-cec5b.firebaseapp.com/
Watch the full video series: https://www.youtube.com/playlist?list=PLgjt1h_kabFcBZbjpKtNYvpsr3gI7cF49
Throughout the series we will cover the following topics:
What is JSON?
View Binding
ViewModels and Live Data
Creating POJO's
Json Parsing
HTTP Calls in Android
Json Parsing Step by Step
Coroutines and suspended functions
Google's GSON
Retrofit
GSONConverterFactory
Glide
POJO Plugin
Source code for the project: https://github.com/hishamMuneer/JsonParsingDemo
Deck used can be downloaded from here: https://jsonparsingdemo-cec5b.firebaseapp.com/Android%20-%20JSON%20Parsing%20demo%20deck.pdf
Json end point urls:
1. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesDemoItem.json
2. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesData.json
All stuff at one place: https://jsonparsingdemo-cec5b.firebaseapp.com/
Watch the full video series: https://www.youtube.com/playlist?list=PLgjt1h_kabFcBZbjpKtNYvpsr3gI7cF49
Throughout the series we will cover the following topics:
What is JSON?
View Binding
ViewModels and Live Data
Creating POJO's
Json Parsing
HTTP Calls in Android
Json Parsing Step by Step
Coroutines and suspended functions
Google's GSON
Retrofit
GSONConverterFactory
Glide
POJO Plugin
Source code for the project: https://github.com/hishamMuneer/JsonParsingDemo
Deck used can be downloaded from here: https://jsonparsingdemo-cec5b.firebaseapp.com/Android%20-%20JSON%20Parsing%20demo%20deck.pdf
Json end point urls:
1. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesDemoItem.json
2. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesData.json
All stuff at one place: https://jsonparsingdemo-cec5b.firebaseapp.com/
Watch the full video series: https://www.youtube.com/playlist?list=PLgjt1h_kabFcBZbjpKtNYvpsr3gI7cF49
Throughout the series we will cover the following topics:
What is JSON?
View Binding
ViewModels and Live Data
Creating POJO's
Json Parsing
HTTP Calls in Android
Json Parsing Step by Step
Coroutines and suspended functions
Google's GSON
Retrofit
GSONConverterFactory
Glide
POJO Plugin
Source code for the project: https://github.com/hishamMuneer/JsonParsingDemo
Deck used can be downloaded from here: https://jsonparsingdemo-cec5b.firebaseapp.com/Android%20-%20JSON%20Parsing%20demo%20deck.pdf
Json end point urls:
1. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesDemoItem.json
2. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesData.json
All stuff at one place: https://jsonparsingdemo-cec5b.firebaseapp.com/
Watch the full video series: https://www.youtube.com/playlist?list=PLgjt1h_kabFcBZbjpKtNYvpsr3gI7cF49
Throughout the series we will cover the following topics:
What is JSON?
View Binding
ViewModels and Live Data
Creating POJO's
Json Parsing
HTTP Calls in Android
Json Parsing Step by Step
Coroutines and suspended functions
Google's GSON
Retrofit
GSONConverterFactory
Glide
POJO Plugin
Source code for the project: https://github.com/hishamMuneer/JsonParsingDemo
Deck used can be downloaded from here: https://jsonparsingdemo-cec5b.firebaseapp.com/Android%20-%20JSON%20Parsing%20demo%20deck.pdf
Json end point urls:
1. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesDemoItem.json
2. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesData.json
All stuff at one place: https://jsonparsingdemo-cec5b.firebaseapp.com/
Watch the full video series: https://www.youtube.com/playlist?list=PLgjt1h_kabFcBZbjpKtNYvpsr3gI7cF49
Throughout the series we will cover the following topics:
What is JSON?
View Binding
ViewModels and Live Data
Creating POJO's
Json Parsing
HTTP Calls in Android
Json Parsing Step by Step
Coroutines and suspended functions
Google's GSON
Retrofit
GSONConverterFactory
Glide
POJO Plugin
Source code for the project: https://github.com/hishamMuneer/JsonParsingDemo
Deck used can be downloaded from here: https://jsonparsingdemo-cec5b.firebaseapp.com/Android%20-%20JSON%20Parsing%20demo%20deck.pdf
Json end point urls:
1. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesDemoItem.json
2. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesData.json
All stuff at one place: https://jsonparsingdemo-cec5b.firebaseapp.com/
Watch the full video series: https://www.youtube.com/playlist?list=PLgjt1h_kabFcBZbjpKtNYvpsr3gI7cF49
Throughout the series we will cover the following topics:
What is JSON?
View Binding
ViewModels and Live Data
Creating POJO's
Json Parsing
HTTP Calls in Android
Json Parsing Step by Step
Coroutines and suspended functions
Google's GSON
Retrofit
GSONConverterFactory
Glide
POJO Plugin
Source code for the project: https://github.com/hishamMuneer/JsonParsingDemo
Deck used can be downloaded from here: https://jsonparsingdemo-cec5b.firebaseapp.com/Android%20-%20JSON%20Parsing%20demo%20deck.pdf
Json end point urls:
1. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesDemoItem.json
2. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesData.json
All stuff at one place: https://jsonparsingdemo-cec5b.firebaseapp.com/
Watch the full video series: https://www.youtube.com/playlist?list=PLgjt1h_kabFcBZbjpKtNYvpsr3gI7cF49
Throughout the series we will cover the following topics:
What is JSON?
View Binding
ViewModels and Live Data
Creating POJO's
Json Parsing
HTTP Calls in Android
Json Parsing Step by Step
Coroutines and suspended functions
Google's GSON
Retrofit
GSONConverterFactory
Glide
POJO Plugin
Source code for the project: https://github.com/hishamMuneer/JsonParsingDemo
Deck used can be downloaded from here: https://jsonparsingdemo-cec5b.firebaseapp.com/Android%20-%20JSON%20Parsing%20demo%20deck.pdf
Json end point urls:
1. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesDemoItem.json
2. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesData.json
All stuff at one place: https://jsonparsingdemo-cec5b.firebaseapp.com/
Watch the full video series: https://www.youtube.com/playlist?list=PLgjt1h_kabFcBZbjpKtNYvpsr3gI7cF49
Throughout the series we will cover the following topics:
What is JSON?
View Binding
ViewModels and Live Data
Creating POJO's
Json Parsing
HTTP Calls in Android
Json Parsing Step by Step
Coroutines and suspended functions
Google's GSON
Retrofit
GSONConverterFactory
Glide
POJO Plugin
Source code for the project: https://github.com/hishamMuneer/JsonParsingDemo
Deck used can be downloaded from here: https://jsonparsingdemo-cec5b.firebaseapp.com/Android%20-%20JSON%20Parsing%20demo%20deck.pdf
Json end point urls:
1. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesDemoItem.json
2. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesData.json
All stuff at one place: https://jsonparsingdemo-cec5b.firebaseapp.com/
0:00 Agenda
1:08 What is JSON?
6:05 View Binding
8:10 ViewModels and Live Data
13:50 Creating POJO's
17:15 Json Parsing
22:00 HTTP Calls in Android
24:10 Json Parsing Step by Step
27:49 Coroutines and suspended functions
34:40 Google's GSON
37:10 Retrofit
41:00 GSONConverterFactory
43:45 Glide
47:00 POJO Plugin
Source code for the project: https://github.com/hishamMuneer/JsonParsingDemo
Deck used can be downloaded from here: https://jsonparsingdemo-cec5b.firebaseapp.com/Android%20-%20JSON%20Parsing%20demo%20deck.pdf
Json end point urls:
1. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesDemoItem.json
2. https://jsonparsingdemo-cec5b.firebaseapp.com/json/moviesData.json
All stuff at one place: https://jsonparsingdemo-cec5b.firebaseapp.com/
Watch all videos of this series: https://www.youtube.com/playlist?list=PLgjt1h_kabFebUn1anGYZ6_Tfkw64Ww12
In this tutorial we will create a helper class for database. We will understand how to create a table in Android SQLite. We will understand how to use content values too
In this tutorial we will learn how to create a simple database in Android. SQLite is used as a database in Android. We will create design of our screen and
Watch all videos of this series: https://www.youtube.com/playlist?list=PLgjt1h_kabFebUn1anGYZ6_Tfkw64Ww12
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
Link of Json Response Complex - https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesData.txt
Watch all videos of this series: https://www.youtube.com/playlist?list=PLgjt1h_kabFebUn1anGYZ6_Tfkw64Ww12
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
Finally we will see a production level json and we will try to parse it.
It will contain different fields like float, int, Strings and a link of an image which we will also display in our app.
NEW LINKS:
Link of Json Simple Muliptle JSONObjects - https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesDemoList.txt
Link of Json Response Complex - https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesData.txt
Watch all videos of this series: https://www.youtube.com/playlist?list=PLgjt1h_kabFebUn1anGYZ6_Tfkw64Ww12
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
We get a NetworkOnMainThreadException if try to make a network call on main thread, we will also see how we can resolve this exception in Android.
AsyncTask is ideal for short operations (a couple of seconds), For long running tasks in the background use a services in Android.
We will also see what is SecurityException and how your apps need to mention permissions in AndroidManifest.xml file.
Finally we will run our app and will parse result.
NEW LINKS:
https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesDemoItem.txt
https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesDemoList.txt
https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesData.txt
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
In this tutorial we will finally parse the json response that we will received and will the movie name - Avengers and year 2012 in the textView.
Step by step parsing of the json response is shown in this video.
Json response structure was: JsonObject - JsonArray - JsonObject - KeyValue Pairs
NEW LINKS:
https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesDemoItem.txt
https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesDemoList.txt
https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesData.txt
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
Url to get a single object Json response - https://jsonparsingdemo-cec5b.firebaseapp.com/jsonData/moviesDemoItem.txt
After that we will run our application and will check if we have parsed the json successfully.
We get a NetworkOnMainThreadException if try to make a network call on main thread, we will also see how we can resolve this exception in Android.
Watch all videos of this series: https://www.youtube.com/playlist?list=PLgjt1h_kabFebUn1anGYZ6_Tfkw64Ww12
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
Quiz
====
What should be used to create a connection?
Correct: HttpURLConnection
In this tutorial we will also understand how to use HttpUrlConnection class and its methods to make a connection to the server and get a json response.
Watch all videos of this series: https://www.youtube.com/playlist?list=PLgjt1h_kabFebUn1anGYZ6_Tfkw64Ww12
Complete Source code link: https://github.com/hishamMuneer/JsonParsingDemo
How xml designs are laid out in android
Use of Linear Layout, Relative Layout
Use of Weight and Gravity in LinearLayout
Create your first Android Application starting with "Hello world" as always. Test it on a real device. We will be developing all of our applications in Android Studio.