@AlbertSP The JSON code you have provided in your question is for specific column formatting and not for view formatting.
Are you trying to implement it in gallery/tiles view instead of normal list/table view? If yes, you can refer JSON formatting applied on column directly inside your view formatting using columnFormatterReference like:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.