posted 5 years ago
Hi,
I'm facing difficulties when i want to convert two table(multiple) in sqlite into a JSON object. I manage to convert a sqlite table to a json object. I've googling and mostly those site recommend to use Gson but i don't have single idea how to do it when sqlite involves. Can you give me some example how to convert it to JSON object? It's easier to understad from example. thanks
here's my code to convert single table:
and this is my DatabaseHelper table: