"how to store json object in sqlite database" Code Answer


convert jsonobject into string and save as text/ varchar. while retrieving the same column convert the string into jsonobject.

for example

write into db

string stringtobeinserted = jsonobject.tostring();
//and insert this string into db

read from db

string json = read_column_value_logic_here
jsonobject jsonobject = new jsonobject(json);
By Superole on July 27 2022

Answers related to “how to store json object in sqlite database”

Only authorized users can answer the Search term. Please sign in first, or register a free account.