jsmart icon indicating copy to clipboard operation
jsmart copied to clipboard

Caching problem

Open GoogleCodeExporter opened this issue 9 years ago • 1 comments

http://code.google.com/p/jsmart/wiki/caching
the caching method is great, but only in browser.

I want to use jSmart in my asp project, using the code :

>>>

    var name = xxxx;
    var f = new F.File('/bin/data/template_c/' + name);
    var text = null;
    var tpl;
    if (f.exist()) {
        text = f.getText();
        tpl = new jSmart();
        tpl.tree = eval(text);
    }else{
        tpl = new jSmart(f.getText());
        text = F.json.stringify(tpl.tree);
        f.setText(text);
    }

however, some var in tpl.tree are Array type, but they have Non-number 
properties. So they can not be json stringified.

Can you fix it? 

Original issue reported on code.google.com by [email protected] on 4 Jun 2012 at 9:54

GoogleCodeExporter avatar Mar 16 '15 07:03 GoogleCodeExporter

Original comment by [email protected] on 28 Jun 2012 at 10:30

  • Changed state: Started

GoogleCodeExporter avatar Mar 16 '15 07:03 GoogleCodeExporter