try/catch for invalid JSON?