I receive JSON file from Google API Geocoding.Refer to JSON file here.Is there any other easy way to extract the data from this JSON in Apex?I want to retrieve a state value and result status code value.

This is my code based on @Bachovski and @eyescream post.I hope one day we can get direct field from Google API JSON instead of extract it like this.But for this time being,this one works for me.

Have you tried to deserialize the JSON string in Apex via JSON.deserialize method? You can simply desierialize it to a Map<String, String>. For more information please read JSON Methods documentation.
–
Programmable MedleyJun 19 '14 at 4:45

Thanks @eyescream ... based on your answer there.I get to know that we can choose to create object with selected field and not necessary to create all fields that returned by JSON.
–
unidhaJun 23 '14 at 2:51

It seem like we cannot choose which field that we want to deserialize.For example I only create field for address_component but it throw JSONException saying format_address , geometry etc. are unknown field.Now need to extract and create field for all JSON element that return.
–
unidhaJun 25 '14 at 9:24

Out of curiosity what happens if the JSON format being received is modified to have additional parameters. Will the casting to this wrapper class ignore the extra and just store what it can or will it cause the cast to fail.
–
ChrisJan 10 at 17:27