Baysangur
Baysangur

Reputation: 11

How to insert json data to sqflite table without clicking anything in app(Something like at first init of the app)

Can you help me with inserting ready json data that is stored in assets file to sqflite table. And for example my json file

[
  {
    "word": "json",
    "value": "format that uses human-readable text to store and transmit data "
  },
  {
    "word": "life",
    "value": "a gift"
  },
  {
    "word": "work",
    "value": "money"
  }
]

and also at inserting that data to table, sqflite should add an another string for each key-value containing something like "inFavorite": "false".

so I've seen a lot of videos doing that in app, but not one that insert ready data to sqflite. I would be grateful if you could help me!

Is that possible?

Thank you for your help!

I tried a lot of things but there is no result

Upvotes: 0

Views: 58

Answers (0)

Related Questions