Replace manual try/catch around `JSON.parse` with a helper that leverages `core.getInputJson` for consistent error handling.