> 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); ?
Well, JSON is just a notation. Once you evaluate it, it's not JSON any more.
It's a JavaScript object. It doesn't matter whether the object started out
as JSON notation, or was built up using other JavaScript code, it works the
same either way.
Those entries in the object are called properties. So that means the
question is really, "How do I delete a property from a JavaScript object."
That leads to a useful search:
http://www.google.com/search?q=remove+property+from+javascript+object
-Mike
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/