When sending a file and some data, use FormData or JSON? [duplicate]

I would like to know, in the context of using Node.js and Express on the backend, whether it is better to use FormData or JSON to transmit a file and some nested data from the frontend (such as an object with many keys, where some keys have values that are arrays of objects). Which method is more suitable and why?