You need to sign in to do that
Don't have an account?
farukh shaikh
How to parse the below JSON response
Can someone please help me out here , I want the get the verification_status from the below response.I am not able to understand the approach.
[ { "address1":"Rua Padre Antônio D'ângelo 121", "address2":"Casa Verde", "address3":"02516-040 São Paulo SP", "components":{ "administrative_area":"SP", "dependent_locality":"Casa Verde", "country_iso_3":"BRA", "locality":"São Paulo", "postal_code":"02516-040", "postal_code_short":"02516-040", "premise":"121", "premise_number":"121", "thoroughfare":"Rua Padre Antônio D'ângelo", "thoroughfare_name":"Padre Antonio D'angelo", "thoroughfare_type":"Rua" }, "metadata":{ "latitude":-23.50948, "longitude":-46.66073, "geocode_precision":"Premise" }, "analysis":{ "verification_status":"Verified", "address_precision":"Premise" } } ]
[ { "address1":"Rua Padre Antônio D'ângelo 121", "address2":"Casa Verde", "address3":"02516-040 São Paulo SP", "components":{ "administrative_area":"SP", "dependent_locality":"Casa Verde", "country_iso_3":"BRA", "locality":"São Paulo", "postal_code":"02516-040", "postal_code_short":"02516-040", "premise":"121", "premise_number":"121", "thoroughfare":"Rua Padre Antônio D'ângelo", "thoroughfare_name":"Padre Antonio D'angelo", "thoroughfare_type":"Rua" }, "metadata":{ "latitude":-23.50948, "longitude":-46.66073, "geocode_precision":"Premise" }, "analysis":{ "verification_status":"Verified", "address_precision":"Premise" } } ]
Hi Farukh,
which you can use for deserializing as: Now you can get verification_status as: Hope this will help you. If yes, then mark it as best answer so that it can help others also.It is always a good practice creating wrapper class to parse such complex JSON response. Please refer the below class which you can use in response parsing.
Many Thanks,
Sunil Rathore
All Answers
Hi Farukh,
which you can use for deserializing as: Now you can get verification_status as: Hope this will help you. If yes, then mark it as best answer so that it can help others also.It is always a good practice creating wrapper class to parse such complex JSON response. Please refer the below class which you can use in response parsing.
Many Thanks,
Sunil Rathore