Using Json for saving illustrator script settings.
I am new to illustrator.I written a basic code on illustrator script and working fine.I want to save the values in txtbox in json file on butten click and retrieve from the same file to textbox on another button click. could any one help me to write this program.such that i could use json objects easily.my code is given below.please help me in adding json.
var w = new Window ("dialog");
var docRef = app.activeDocument;
var txtbox =w.add('edittext', undefined, "");
var btnsave=w.add ("button",[0, 0, 50, 50], "save");
var btnretrive=w.add ("button",[0, 0, 50, 50], "retrieve");
w.show ();
