I made a small adjustment to the JSON as it wasn't quite working for me.
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "a",
"txtContent": "Version History Link",
"attributes": {
"target": "_blank",
"href": "='https://2205q6.sharepoint.com/sites/PowerPlatformSandbox/_layouts/15/Versions.aspx?list={GUID HERE}&ID=' + [$ID]"
}
}
- Replace [Site URL] with your SP Site URL.
- Replace [GUID HERE] with your GUID.
However, something to note is that this JSON will open a new tab with the version history. In my opinion the UX is a lot better when using the built in Version History as it's a pop up overlay which allows the user to stay on the list rather than opening up a new tab.
It's only two clicks to access the version history.