Convert SQLite to JSON
问题 Is there a way to convert sqlite to json? All other questions are parsing json and saving to sqlite. I can't seem to find any reference on this, please help me. I have a sqlite db inside the app and i need it to be converted to json, upgrade db version, parse earlier converted json and add another table. Any suggestions on how should I do this? Thanks in advance. 回答1: Reference Link private JSONArray getResults() { String myPath = DB_PATH + DB_NAME;// Set path to your database String myTable