I've been using Cordova and the storage adapter for SQLite. When I store objects using JSON.stringify and the retrieve them they work. I also have several fields that are arrays, but when I store them they are just stored comma-delimited. If there is only one item in the array then it's just stored as a single string.
Initial Array:
["test1", "test2", "test3"]
Stored As:
test1, test2, test3
I could just split those specific fields when I retrieve them from the database, but still wondering if there is a better way to store them. Is there a elegant way to store an array and retrieve it in SQLite using JavaScript?