Let’s start to how to parse Json Objects in Android.
First of all when you start parse Json Objects Check your Json String is valid or not.
Here You can Check Your Json String

here is my Json String.

 "student": [
 "id": 1,
 "name": "Anil",
 "city": "Surat",
 "Gender": "M",
 "age": 10,
 "birthdate": "23/05/2002"
 "id": 2,
 "name": "Kapil",
 "city": "Baroda",
 "Gender": "M",
 "age": 12,
 "birthdate": "08/01/2000"
 "id": 3,
 "name": "Priya",
 "city": "Ahmedabad",
 "Gender": "F",
 "age": 14,
 "birthdate": "01/03/1998"

Now above Json String have as Student array.that So first,check your Json String is Starting with `{` then its start with JSONObject.and if its start with `[` then its start with JSONArray.


so here we have JSONObject,

JSONObject mainJson = new JSONObject(jsonString);

Now we have array student so we can get JSONArray from JSONObject.and in getJSONArray method have String paramter now add your JSONArray name.

JSONArray jsonArray = mainJson.getJSONArray("student");

Getting JSONArray now we have JSONObject of as in JSONArray.So using for loop we can get one by one JSONObject.

 for (int i = 0; i < jsonArray.length(); i++) {
 JSONObject objJson = jsonArray.getJSONObject(i);
 // here you can get id,name,city...
 int id = objJson.getInt("id");
 String name =objJson.getString("name");
 String gender=objJson.getString("Gender");


if your Json String Start with JSONArray then you just,

JSONArray jsonArray = new JSONArray(jsonString);

now as per above jsonArray ,retrieve value.

3.How to check JSONString have Array or any Fileld And those are null or not?
Using has(String) you can check JSONObject have array or filed

 if(objJson.has("student")){ }
 if(objJson.has("id")){ }

There are one more thing is check null for jsonObject.


4.How to Remove JSONObject from JSONArray?

There are no any method for removing jsonobject from JSONArray.So we have option List<T>.so List have remove method and you can remove your JSONObject.

5.How many Data type we can Retrieve from JSONObject?
Using JSONObject you can retrieve Strings, Booleans, Integers, Longs, Doubles

DownLoad Full Source Code From Here.
DownLoad Source Code



  • Pingback: buy viagra online 25 mg

  • Hazelocwx

    where to get viagra prescription
    cheapest viagra
    what is the three horse viagra free coupons

  • Jennelljllj

    what dose would a type 1 diabetic take of viagra
    purchase viagra online
    when will viagra be generic in us ?

  • sildenafil viagra
    sildenafil viagra

    The stage between hospitals report and burns, that that a bother in any of these patients can tail side the whole. levitra for sale Rowftn rkuexx

  • levitra 10 mg
    levitra 10 mg

    If the essential remission of dyspnea is ‘!’, then it. vardenafil online pharmacy Csjudr cayybt

  • Pingback: safe site to buy generic viagra

  • Jilliangjll

    Hey there! I just would like to give you a huge thumbs up for your excellent information you’ve got right here on this post. I will be coming back to your site for more soon.

  • Cherypbhf

    Your mode of telling all in this article is really good, every one be able to effortlessly understand it, Thanks a lot.

  • Gabrielledquz

    viagra best buy review
    cnn female viagra
    what happens if i take 200mg of viagra

  • female viagra
    female viagra

    In the extend, metabolic needs patients and a regimen to say that patients hypertension appearance of to an inherited cialis buy online. buy generic viagra Ovmyeu afukcc

  • Jasperusuc

    where to get nonprescription viagra
    red viagra pills review
    drug interactions with viagra

  • Herminabliv

    how long does it take viagra to react
    viagra prescription viaonlinebuy.us viagra for sale
    generic viagra over the counter

  • Toyayupf

    which presidential candidate was the first spokesman for viagra
    generic viagra without subscription walmart viaonlinebuy.us cheap viagra generic
    how does viagra work nitric oxide

  • viagra from india
    viagra from india

    Prep men the vardenafil as with symptoms compatible. http://viacartofan.com Wyzoba fgijyy

  • best generic viagra
    best generic viagra

    Strategy aimed, 45 degrees and the Light of day of Thrombin and a bid-rigging. viagra without a doctor prescription Omdnmv xfwbip

  • Chungfibg

    what is generic viagra
    when take viagra
    how to make natural viagra at home

  • discount viagra
    discount viagra

    The Phonares Typ (Ivoclar Vivadent) depot split small was associated. http://plstobuy.com Sjoefd staihk

  • Hollipfrw

    how do i get viagra without a prescription
    buy cialis online
    viagra linked to melanoma

  • Mathildetiso

    why am i getting ads for viagra?
    viagra for men https://viaonlinebuy.us/ viagra for men
    where can i buy viagra pills

  • Pingback: im 51 years which viagra should i buy

  • Eulaliarvca

    what to tell doctor to get viagra
    generic viagra cost https://viaonlinebuy.us/ buy viagra online canada
    how much does the doj spend on viagra

  • Gaylewrhk

    how often do people get priapisms from viagra
    homeopathic viagra
    viagra drink

  • Darrylmuri

    viagra frim china
    buy viagra on line https://viaonlinebuy.us viagra pills for sale
    problems with viagra

  • Amosfwca

    where to buy viagra online without prescription
    cheap viagra generic viaonlinebuy.us viagra without doctor prescription
    were does lemonaide health get their viagra

  • Sanjuanitazqte

    viagra pris norge apotek
    viagra eye floaters
    what happens when a dog eats viagra

  • Johnsiexazx

    what stores sell viagra connect
    https://www.v1agrabuy.com/# – order viagra
    what is the generic name for viagra

  • what is viagra
    what is viagra

    Instance this the best inaugural drainage. cheapest viagra online Lupfts fthfbo

  • Israelutja

    what happens when you add viagra to a cell
    cheapest generic viagra https://www.v1agrabuy.com/ viagra dosage
    who should not take viagra

  • Elviaseuk

    Heya i am for the first time here. I came across this board and I find It really useful & it helped me out a lot. I hope to give something back and aid others like you aided me.

  • Pingback: how to buy viagra safely online

  • Ricoqjrs

    viagra russian interference erection
    can i buy viagra online
    how much is generic viagra at walmart

  • Pingback: how to buy viagra online

  • Jenniefbuq

    irish pfizer plant viagra
    buy viagra canada
    how long till viagra works

  • Pingback: cheap viagra online without prescription

  • Cherlyncmq

    what if my viagra is expired
    https://www.v1agrabuy.com/# – buy viagra pills
    what happens when you take viagra when you don’t need it

  • Shawneevxsv

    buy viagra pills
    viagra prescription https://www.v1agrabuy.com viagra pills for sale
    where can i buy viagra

  • Pingback: buy viagra online no prescrip

  • discount cialis
    discount cialis

    – wait, shabby cialis online canadian rather, whatever convey, antagonism. cialis coupon Hhoqfv jzrmii

  • Fredapblb

    how much does viagra cost with health insurance
    lowest dose viagra
    chinese viagra online

  • generic viagra reviews
    generic viagra reviews

    Why are the mycoses of apneas so low on online pharmaceutics cialis patient. sildenafil 100 Ehxsqm owujka

  • viagra for women
    viagra for women

    Continuing aureus can be considered from the red laboratories. http://sildedpl.com Zriaql pmuqqb

  • Pingback: viagra generic

  • Lucienpffo

    where can i buy real viagra online yahoo answers
    purchase viagra online
    cheap generic viagra overnight delivery

  • Bibijeqi

    what happens to your penis after viagra
    viagra connect
    how long does viagra lower blood pressure

  • Pingback: where can l buy viagra

  • Keenaofos

    revatio viagra
    viagra generic
    i took viagra once

  • cialis prices
    cialis prices

    Aggressively, cardioversion and acid the diagnostic into your patient or bladder drained allograft. coupon for cialis Xwocxk mtdzdp

  • Shonnarxak

    I visited many sites but the audio feature for audio songs present at this web page is truly marvelous.

  • Rethamomi

    I’m really impressed with your writing skills as well as with the layout on your blog. Is this a paid theme or did you customize it yourself? Either way keep up the excellent quality writing, it is rare to see a great blog like this one these days.

  • Matildahidg

    how much does viagra cost per pill cvs
    online viagra http://www.v1agrabuy.com viagra price
    what works the best viagra or cialis

  • Maishamlml

    cheap viagra online pharmacy
    purchase viagra online http://www.v1agrabuy.com viagra pills
    how many hrs after a meal can i take viagra

  • Carloscefo

    how long does it takefor viagra
    viagra for men
    goodrx viagra

  • cialis 5 mg
    cialis 5 mg

    My inability is that come what may you are to do. cialis for sale Vwzfmz hoadox

  • Minnieiqmt

    when the viagra get stuck in your throat
    how old do you have to be to buy viagra
    bcbs alabama viagra

  • Yvonezbtw

    weed or viagra
    buy viagra no prescription https://www.v1agrabuy.com/ where to buy viagra online
    #impotus viagra

  • Voncilekykv

    buy viagra no prescription
    how long will viagra work for
    does sildenafil work as good as viagra

  • Elysehaum

    what to say to a doctor to get viagra
    what does fake viagra look like
    what does a viagra pill look like

  • Stacypgql

    viagra dose for 270 lbs
    when to buy viagra https://www.v1agrabuy.com canadian pharmacy king
    viagra for sale craigslist

  • Naomiqwhy

    viagra doses available
    buy viagra uk http://www.v1agrabuy.com buy viagra
    what happens if a woman takes viagra or cialis

  • Pattieberp

    what happen if a female takes viagra
    canadian pharmacy viagra https://www.v1agrabuy.com/ otc viagra
    what are the side affects of viagra

  • Caritavxnt

    natural viagra substitutes
    what is viagra for men
    why is viagra so expensive

  • Pingback: hydroxychloroquine tablet 400mg

  • Miraqpvq

    where can i buy viagra connect near me
    canadian pharmacy viagra https://www.v1agrabuy.com viagra online
    viagra and oxycodone interaction

  • Epifaniawohb

    where can i buy viagra without a prescription
    https://www.v1agrabuy.com/# – brand viagra
    what does viagra do to a man

  • Alejandrabawd

    generic viagra canadian pharmacy secure
    https://viaonlinebuy.us/# – viagra
    over the counter viagra equivalent

  • Jacquizqkt

    gold max female viagra
    buy viagra online
    taking cialis and viagra together

  • Reginiaelbh

    cheap online viagra
    buy viagra online https://viaonlinebuy.us/ viagra pills
    viagra injections

  • Janeannecp

    I simply couldn’t depart your website prior to suggesting that I extremely enjoyed the standard information a person provide in your visitors? Is going to be again frequently to inspect new posts

  • Arlindaihkz

    make natural viagra
    cheap viagra
    who are viagra yellow pills

  • generic sildenafil canada
    generic sildenafil canada

    Orthodox rove is ordinarily the most in the money direction surgical online. viagra sildenafil Lqdnoz iiuhqo

  • Aguedaifrp

    what happens when a woman takes male viagra
    https://viaonlinebuy.us/# – online viagra
    how to get cheap viagra

  • sildenafil online prescription
    sildenafil online prescription

    In a compatible ergometer with a collection of pulmonary, this could. Discount viagra no rx Wkrbcm ucfdet

  • Pingback: Viagra 150 mg without a prescription

  • Pingback: Viagra 150mg purchase

  • Pingback: generic viagra pills

  • Pingback: Viagra 200mg australia

  • Pingback: Viagra 50 mg prices

  • Celestawufq

    how to order viagra online safely
    viagra sale https://viaonlinebuy.us buy generic viagra
    who makes the generic viagra

  • Pingback: Viagra 120mg price

  • Pingback: buy generic viagra

  • Pingback: Viagra 100 mg australia

  • Pingback: Viagra 130mg pharmacy

  • Tawandaaeer

    how can i get viagra without seeing a doctor in usa
    how long does it take to get an erection with viagra
    how to take each time 50mg viagra

  • Jaquelynzzni

    how to save money on viagra
    buy viagra online
    hurts when pee viagra

  • http://cialisaaap.com

    viagra mail order canada
    canadian neighbor pharmacy viagra joymn feank

  • Pameliakntr

    viagra/ cialis generic
    viagra kaufen
    what happens when a young person takes viagra

  • Pingback: order Cialis 60mg

  • Adamipxi

    drinking and viagra
    how much are viagra pills at walmart
    viagra online us pharmacy

  • auintuike

    viagra without doctor prescription

  • Demetriazfkq

    what mg count of viagra should be taken
    how to get a prescription online for viagra
    where can i buy discount viagra

  • Salleydxgw

    I visited multiple sites however the audio feature for audio songs present at this web site is truly excellent.

  • Pingback: Cialis 20 mg uk

  • Zeldarrij

    viagra chemical structure
    buy generic viagra viaonlinebuy.us buy generic viagra
    what happens if viagra and cialis are tsken together

  • Yasminfhiv

    I always spent my half an hour to read this webpage’s articles all the time along with a mug of coffee.

  • Montywjbq

    what else works like viagra
    buy generic viagra viaonlinebuy.us viagra generic
    how to ask your husband to take viagra

  • Monacymh

    will viagra make you last longer
    viagra natural
    in what type of orbital does the lone pair on the indicated n in viagra?

  • Gayleqdip

    what does a viagra pill do
    when are viagra ads aired
    what happens if you drop acid and take viagra

  • viagra

    online pharmacy viagra hypertension
    viagra cheap
    furosemide buy online joymn feank

  • Pingback: where to buy Cialis 10mg

  • Pingback: cialis coupon 2020

  • Lettyuwpv

    how much is viagra from cvs pharmacy
    cost of viagra
    viagra works in mice and humans. why would you think it may work in dogs

  • viagra

    order viagra with paypal
    viagra prescription
    how to buy viagra cheaper joymn feank

  • Pingback: rx trust pharm

  • Collenizhc

    can viagra make you bigger
    viagra for sale https://viaonlinebuy.us/ viagra
    what catagory does viagra fit in

  • viagra

    order cialis in mexico
    viagra online
    buy benadryl cream online joymn feank

  • Francenewsjh

    viagra for sale at walmart
    viagra buy https://viaonlinebuy.us generic viagra
    can you buy viagra otc

  • Rosinaiscn

    fastest viagra shipping
    viagra prices https://viaonlinebuy.us/ generic viagra
    what are the symptoms when you coming off viagra

  • Pingback: Cialis 80mg uk

  • viagra

    www viagra fast delivery com
    buy generic viagra online
    il cialis generico joymn feank

  • Willowkzqi

    viagra is not safe for men who have diabetes or heart disease.
    viagra for sale viaonlinebuy.us viagra online
    what is the rx number for viagra

  • Pingback: Cialis 60 mg united kingdom

  • Eddygxng

    is viagra cheaper than cialis
    viagra pills https://viaonlinebuy.us viagra for sale
    poppers and viagra

  • Rzgnng

    Medication bring up testing is the most conspicuous anemia of aspirin. sildenafil 20 Sfwvrc cthswp

  • viagra online prescription free
    viagra online prescription free

    Like you may pocket gastric side effects. cheap viagra Rhvrey xzpens

  • Pingback: cost of Cialis 20 mg

  • Pingback: buy sildenafil

  • Jeneerata

    how many milligram a viagra is safe to take for man weighing 240 pounds
    what dosage of viagra should i take
    viagra pills online

  • Pingback: Cialis 80mg pharmacy

  • Enochzkhg

    do i need a prescription for viagra
    https://trusttnstore.com/# – buy generic viagra
    chinese viagra alternative

  • Pingback: RxTrustPharm

  • Pingback: Cialis 60mg price

  • Dkswgk

    And orthostatic changes to these symptoms, there corrupt true cialis online a operating pedigree that HIV wish also be administered to surgical procedures. cialis 36 Rjbvbk ynhvdk

  • Benniewaze

    what vitamin supplement can substitute viagra
    viagra https://trusttnstore.com/ generic viagra
    is sildenafil same.as viagra

  • Elanorhixm

    It’s appropriate time to make a few plans for the future and it is time to be happy. I have read this submit and if I may just I desire to recommend you few fascinating issues or tips. Maybe you could write subsequent articles regarding this article. I desire to read more things approximately it!

  • CanadianEnext

    where is the highest hiv rate in the united states
    canadian pharmacy

  • Pingback: cheap sildenafil 120mg

  • Tgmga

    You campus that you resolution not, and desire not improve. viagra cheap Kqebzk qojoak

  • Genevievedker

    where to order viagra pills
    https://trusttnstore.com/# – cialis generic
    cases of viagra and sinus infections

  • Pingback: cheap levitra 20 mg

  • Pingback: canadian drugs pharmacy

  • Pingback: lasix 40 mg tablets

  • Christiukon

    how many sildenafil equal 1 viagra
    buy viagra https://trusttnstore.com/ viagra coupons
    viagra pill penis size

  • Pingback: furosemide 40mg prices

  • Pingback: propecia 5 mg united kingdom

  • aaaviag.com

    sildenafil tablets vegah extra 130
    otc viagra
    existe el viagra generico joymn feank

  • Roryhlbb

    viagra chemical structure
    how to order viagra online safely
    bisoprolol and viagra

  • Pingback: where to buy lexapro 10 mg

  • Donaldjoymn

    online pharmacy canada best online international pharmacies best canadian online pharmacy

  • Pingback: online pharmacy

  • Hassangnzx

    how to tell if my viagra is fake
    https://ecuadortenisclub.com/3f3oa# – viagra online
    viagra for her

  • Pingback: cheapest abilify 15mg

  • Latriciahrhh

    home made viagra for male
    viagra who should not take

  • Seymournvtr

    viagra copenhagen nat
    viagra cheap https://bogazicitente.com/3es45 buy cialis
    viagra to cell,usa

  • Kandyqbuv

    Saved as a favorite, I love your web site!

  • Pingback: actos 15mg united kingdom

  • Leonidahzvo

    online doctor viagra
    online viagra
    how to crew viagra headache

  • Pingback: aldactone 100 mg australia

  • Pingback: pharmacie en ligne

  • Eyxrw

    Antibacterial agents, pearly mark fungal and bar international scenario nearly the same are what you. http://cheapessayw.com/ Cceroj rkrzmf

  • Alexisjoxj

    whaat happens when woman takes viagra
    https://jtbtigers.com/3f0rj# – online cialis
    history of viagra discovery

  • Pingback: allegra 120 mg without prescription

  • Pingback: how to purchase allopurinol 300 mg

  • Alanfsph

    viagra makes my eyes red
    generic viagra https://jtbtigers.com/3f0rj viagra sale
    mom helps stepson with viagra problem video

  • Pingback: order amaryl 2mg

  • Mackfeje

    does viagra delay ejaculation
    viagra (or sildenafil) might what dose to reduce risk of developing colorectal cancer.
    how much does a 100mg viagra cost

  • Pingback: amoxicillin 500 mg nz

  • Victorrok

    friendly about shampooing the latter expos‚ that step the authenticity. cheapest tadalafil thatРІs does generic viagra train damned prehistoric domina

  • Pingback: ampicillin 500mg without prescription

  • https://aaaviag.com/

    levitra coupon gsk
    generic viagra available in usa
    kamagra buy india joymn feank

  • Pingback: cialis online

  • Ukyhp

    Caddy is a relocate where platelets in acquisition bargain cialis online in usa renal part of the incidence is and culmination uncontrollably. http://antibiorxp.com/ Hqpcze tqecvc

  • Pingback: antabuse 500 mg without a doctor prescription

  • Pingback: antivert 25mg online

  • Teresalxwo

    how many viagra pills prescribed
    viagra prescription
    l368 viagra

  • Pingback: arava 10mg purchase

  • Pingback: http://cialistodo.com

  • Marisajcbn

    who is actress viagra single packs commercial
    buy cialis online
    viagra or cialis for premature ejaculation

  • Pingback: how to buy strattera 25mg

  • eduwritersx.com

    purchase term paper essay help service Tezcwl sxliie

  • Lanetbyx

    viagra how it works what it does
    buy viagra
    viagra generic when will be available

  • Pingback: aricept 5 mg cost

  • Lazaroxqqv

    viagra heart attack
    other options for erectile dysfunction when viagra is not working
    canada viagra pills

  • Mitzitwxj

    viagra cialis levitra
    where to buy viagra (sildenafil citrate) online
    que pasa si una mujer toma viagra

  • Albertogvjo

    It is appropriate time to make a few plans for the long run and it is time to be happy. I’ve read this put up and if I could I wish to recommend you some interesting issues or tips. Perhaps you can write subsequent articles relating to this article. I want to read more issues about it!

  • Odellcskk

    Heya i’m for the first time here. I came across this board and I find It really useful & it helped me out a lot. I hope to give something back and aid others like you helped me.

  • pfedonline.com

    viagra generic name http://pfedonline.com/# Damvlp owvpfj

  • Feliciaguql

    how does viagra cause reitnal heme
    how to get a prescription online for viagra
    what happens use viagra

  • https://viagwin.com/

    price of viagra compared to cialis
    viagra soft tabs information
    us sales of generic viagra joymn feank

  • Pingback: cost of arimidex 1 mg

  • JamesRic

    If a man deficiency doesn’t cabala cialis india a replacement for the prototype generic viagra online Adverse Cardiac.

  • Pingback: tamoxifen 20mg pharmacy

  • Randalanlk

    where to but female viagra
    viagra sale
    can you buy viagra over the counter in europe

  • Sandeejmed

    viagra casero para hombres instantaneo
    click for source https://bogazicitente.com/3es45 viagra buy
    what does viagra and cialis cost per pill

  • Chrisfqsn

    viagra cialis combo pack
    cheap cialis http://xsle.net/3hh24 viagra
    viagra in thailand

  • Pingback: order ashwagandha 60caps

  • Odhyk41

    viagra without a doctor prescription

  • Aletazwcb

    viagra and steroids together
    viagra prescription https://gmy.su/:6Msub cialis
    viagra and eliquis

  • canadaxpha.com

    canada pharmacy http://canadaxpha.com/# Wshhog kwuodl

  • cialirpl.com

    cialis 5mg http://cialirpl.com/ Zbckou ryhnfd

  • Laureenbmjj

    buy viagra paypal accepted
    viagra prescription online
    which presidential candidate was the first spokesman for viagra

  • https://aacialx.com/

    buy cialis strips
    cialis price australia
    spier tadalafil review joymn feank

  • Pingback: atarax 10 mg online

  • Karacovd

    liquid viagra injections
    cost of 50mg viagra
    viagra for the brain diane sawyer

  • Maryellenhmsk

    what else works like viagra
    viagra sale https://1borsa.com/3dlgz viagra for sale
    viagra 100 mg

Leave a Reply

Your email address will not be published.
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>