Editing JSON from RecyclerView AdapterClass

I am trying to edit my Json in Assets, by using the Buttons of a RecyclerView, does anyone know how to do this?

I have tried making a jsonObject in the Adapterclass which dosent work because the .open() dosent work in adapter classes. I also tried accessing my exsisting jsonObj in my Mainfile which dosent work eather.