with this code:

js(view)

$('#timed').change(function(){  
        arr.push($(this).val());
        var arrayJSON = JSON.stringify(arr);
        localStorage.setItem("tabledata",arrayJSON);

controller
value =request.vars.json
if valued:
    db.post.insert(message=value)



My data is stored as 

<Storage {'json': 
'{"list":"[\\"sure\\",\\"<39\\",\\"unconfirmed_pcr\\"]"}'}>



how can I read a clean list like:

["sure","<39","unconfirmed_pcr"] or ["sure,<39,unconfirmed_pcr"]

Currently i'm using n.replace(). Is there a better, faster way?

Kind regards

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2b03ea7d-808d-4409-98bf-b24e5e1a1b5eo%40googlegroups.com.

Reply via email to