json parsing exception handling