On 15/12/06, Andreas Wahlin <[EMAIL PROTECTED]> wrote:
> I suppose this touches on off topic, but ... is it possible to remove
> an entry completely from a JSON hash?
>
> say I have
> {
> firstString: 'first',
> secondString: 'second'
> }
>
> and evaluate this into a json object, and I want to remove
> firstString, could I do something like
> json.remove(json.firstString);
> ?
>
> Andreas

I think

json.firstString = null

or

delete json.firstString

work (although IIRC delete is not supported by IE 5.5 or earlier).

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to