How can I make the user upload a JSON file?

How can I make the user select a json file? there is a extention available which lets you turn json in variable but I want the user to upload the JSON.How?

I am talking about IN-GAME

I don’t think you can, but you can try making a compressed text and convert to base64. The user then can paste the compressed text that’s converted to base64 to an input box.

how can I do it? I am new to javascript

No need to java script.
Use the compress extension
and the base 64 extension.
This topic might help:

thank youI was trying to do the same