Try/catch for json parsing