I am a new of JSON and really I don't know how to get value from inner object.
Now I need to get the "Description" value from JSON object response.
JSON Data:
{"Fault":{"faultcode":"Client", "faultstring":"An exception has been raised as a result of client data.", "detail":{"Errors":{"ErrorDetail":{"Severity":"Hard", "PrimaryErrorCode":{"Code":"111285", "Description":"The postal code 95472 is invalid for FL United States."}}}}}}
http://www.jsoneditoronline.org/?id=2ce7ac5f329bd18f06000788ba7946dc
Expecting Result:
The postal code 95472 is invalid for FL United States.
Sample Code:
       success    : function(response) 
        {                       
            //alert("response="+response);         
alert("Description="+Fault.detail.Errors.ErrorDetail.PrimaryErrorCode.Description);    
        }
    
var json = JSON.parse('{"Fault":{"faultcode":"Client", "faultstring":"An exception has been raised as a result of client data.", "detail":{"Errors":{"ErrorDetail":{"Severity":"Hard", "PrimaryErrorCode":{"Code":"111285", "Description":"The postal code 95472 is invalid for FL United States."}}}}}}');then you can access it asjson.Fault.detail.Errors.ErrorDetail.PrimaryErrorCode.Description