I'm parsing some JSON with jQuery into array. So there is a place where i'm assigning this:
$("#address_text").text(data['account']['address']['text']);
The problem is that sometimes i don't have this in the JSON and i've got error:
TypeError: null is not an object (evaluating 'data['account']['address']')
And the script is blocked under that line.
Is there anyway that i can ignore the error and assign nothing to #address_text ? I search something like "@" sign in php. That no matter what is the error, just ignoring it.