try-catch for null json