How To Store Json File Offline OR Local Host

Hi Guys I Am Making A Chat App So As Some Times Net May Not Be Available So I Want To Show The Offline Stored In The File So My Question Is How To Store The Data In A File In The App Assets
Even After We Store Can We Read The Json File

OR

Can We Store The Json On Local Host

how about tinyDB?

No I Want To Store It In A FILE

Please Help Me @Still-learning

If this json file won’t get modified or changed, then you can upload it to assets. Otherwise, you save it on sdcard

Try File component append json as text into file

It Is A Chat App It Will Be Changed

Can You Show A Example

json

something like this should work

still don’t understand why are you against tinyDB?