How to store JSON object in SQLite database

前端 未结 5 2039
夕颜
夕颜 2020-12-04 08:29

how do I store a JSON Object in an SQLite database? What is the correct way?

one place is the blob type column. if i can convert the JSON object into byte array an

5条回答
  •  心在旅途
    2020-12-04 09:02

    There is no data types for that.. You need to store it as VARCHAR or TEXT only.. jsonObject.toString();

提交回复
热议问题