I am writting a Web app that can save or open a JSON object, what's the best practice to make it behave exactly like an offline desktop app? Should the JSON dump just be in plain text or something?

Could it function properly even if there is no network connection? This means we have to use pure client side Javascript generate a savefile/openfile dialog box.