After experimenting with Backbone.js for a while, I've relied on localStorage to store most of my app data. However, I now want to explore the possibility of exporting my collection to plain text for easy backup purposes. Essentially, I envision a feature where I can export the data as plain text, view it in an HTML textbox, and then import it back by pasting into another textbox to recreate the collection.
Is this kind of functionality possible? Any suggestions on how to make it happen? My initial thought was to export the data in JSON format and then import it back that way. Would that be a feasible approach?
p.s. While there is no actual code provided here, I would greatly appreciate any insights or ideas on how to achieve this feature.