This isn't specific to jQuery. One way...

var x = '{a:123,b:456}'; // json
eval('var z='+x);

z is now an object. z.a = 123, etc.

-j

On Feb 13, 3:47 pm, wolf <[EMAIL PROTECTED]> wrote:
> hi,
>
> what is the correct way in jQuery to decode = deserialize a JSON
> string? jQuery itself can obviously do it as it can formulate and read
> JSON via Ajax. But i seemingly can't find a callable in jQuery that
> allows me to decode JSON without issuing an HTTP request. That is
> strange to me.
>
> Can you help?
>
> _wolf

Reply via email to