Happy Coding

Guys how to make Json file from image

I have images i want to make a json file for each one
can anyone help me?
Thanks in advance

What do you mean when you say you want to make a JSON file from an image?

If you want to reference an image by URL, first you’d upload your image to a web host. You could use something like imgur to get something working, but eventually you probably want to switch to a service designed for hosting files.

Another option might be to use base 64 encoding to convert your image into a string. Try googling “base 64 encode image” for some pointers.

But my guess is you probably want to do the first thing, and include a URL in your JSON file, rather than trying to include the image itself in the JSON file.