You can use JSON formatting to customize how fields in SharePoint lists and libraries are displayed. To do this, you construct a JSON object that describes the elements that are displayed when a field is included in a list view, and the styles to be applied to those elements.

You can use column formatting to customize how fields in SharePoint lists and libraries are displayed. To do this, you construct a JSON object that describes the elements that are displayed when a field is included in a list view, and the styles to be applied to those elements.

About JSON/Column formatting:

Improve the display of columns in SharePoint lists with formatting. The column-formatting text describes the elements that are displayed and their display style. The data in the column doesn't change.

Anyone who can create and manage views in a list can access column formatting from the column settings.

You can read more about JSON/Column formatting in below articles:

  1. Column formatting.
  2. Use column formatting to customize SharePoint.