I am using jquery.getJSON(), but I don't know how to do error handling. And these are some situations that I need to handle.
1) what if the returned data is null?
2) what if the returned data is not json parseable?
3) what if some error message is returned? For example, the server returned HTTP ERROR