I test both in the SharePoint list and Microsoft list, JSON codes work well in both.
Please try to clear browser cache or apply JSON codes in another Microsoft list.
SharePoint list:
Microsoft list:
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.