668Re: [json] Re: json object from cookie
- Jan 16, 2007Why not simply use the parseJSON function?
var myObject = myJSONtext.parseJSON(filter);
(see : http://www.json.org/js.html for more detailed example and
On 1/16/07, Douglas Crockford <douglas@...> wrote:
> > I am trying to get JSON object from a JSON string in a cookie. When I
> > convert the string read from cookie, i still get a string and not a
> > object. So i did an eval on the string again and I get the JSON
> object fine.
> > is this the right way to do this?
> An example of the use of JSON cookies can be found at
> http://www.JSLint.com/index.html <http://www.jslint.com/index.html>
[Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>