Catching exceptions and tab for Json