Friends, I created a system to upload multiple images but I need to write everything in a json file instead of a database.

Can you give me an example of how to do this? It is with fopen ()?