I have tested the JSON code, it works well in my SharePoint.
The update is a new experience released by Microsoft for List. Microsoft made views easier to create and access by arranging them into tabs at the top of the screen. users can use custom views that slice, dice, and arrange the right information for specific audiences or scenarios. This new update will not affect the JSON codes for the view.
I notice that two screenshots show different views in the document library.
Please go to the Products view, format the current view, use JSON code.
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.