Re: [jQuery] Remove from JSON

2006-12-17 Thread Michael Geary
Goodness, I didn't mean for the answer to shame or humble you! :-) There was nothing wrong with the question, just wanted to show a way to track down the answer. -Mike > Slightly ashamed. > Very good answer, I'm humbled. Thank you. > > Well, JSON is just a notation. Once you evaluate it, it's

Re: [jQuery] Remove from JSON

2006-12-17 Thread Andreas Wahlin
Slightly ashamed. Very good answer, I'm humbled. Thank you. Andreas > > 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

Re: [jQuery] Remove from JSON

2006-12-15 Thread Brice Burgess
Andreas Wahlin 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

Re: [jQuery] Remove from JSON

2006-12-15 Thread Michael Geary
> > 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 so

Re: [jQuery] Remove from JSON

2006-12-15 Thread Sam Collett
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 remo

Re: [jQuery] Remove from JSON

2006-12-14 Thread Michael Geary
> 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

[jQuery] Remove from JSON

2006-12-14 Thread Andreas Wahlin
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.firstStrin