如何在 SQLite 数据库中存储 JSON 对象?正确的方法是什么?
一个地方是 blob 类型列。如果我可以将 JSON 对象转换为字节数组并使用 Fileoutputstream
另一个想法是作为字符串存储在文本列中
import org.json.JSONObject;
JSONObject jsonObject;
public void createJSONObject(Fields fields) {
    jsonObject = new JSONObject();
    try {
        jsonObject.put("storedValue1", fields.storedValue1);
        jsonObject.put("storedValue2", fields.storedValue2);
        jsonObject.put("storedValue3", fields.storedValue3);
        jsonObject.put("storedValue4", fields.storedValue4);
        jsonObject.put("storedValue5", fields.storedValue5);
        jsonObject.put("storedValue6", fields.storedValue6);
    } catch (JSONException e) {
        e.printStackTrace();
    }
}