Hi, To reach a particular tag in XML we can use getElementByTagName(). How can we reach a key in JSON if it is like this..
{ , , , { }, {}, { { a: ,b: ,c: } } and quickly reach the key a. May I am bit confused about the way I can find it. I tried grep(), any(), select() etc but I am only able to get the keys from the first level keys . Can anyone you advice me on this? Satheesh On Sep 30, 2:54 pm, "jason maina" <[EMAIL PROTECTED]> wrote: > One question I forgot was how. > Please point me to documentation & if possible an example to > manupilation of the object. > Thanks in advance > > On 9/30/08, Eric <[EMAIL PROTECTED]> wrote: > > > > > > > Jason, > > > I agree with you thatXMLin prototype is kind of a pain since (among > > others): > > - getAttribute/setAttribute are not real functions on IE, preventing > > you to use them in Enumerable methods > > - Since it is not possible to "extend" nodes returned in responseXML, > > you cannot use here the convenient readAttribute/writeAttribute > > methods that fix the above issue. > > > So, goJSONwithout hesitation! :o) > > >> Is it possible to have data in aJSONobject and perform the following > >> actions to the object: > >> 1)add new data to it related to existing data > >> 2)edit existing data in the object > >> 3)delete an item from the object > > >JSONis just a serialization method. Once you have unserialized your > > object, it is just a plain object, and you can do whatever action on > > it (including the 3 ones you list). > > If you need to send the object back to the server, you just have to re- > > serialize it and the newJSONstring will contain the new version of > > your object including all changes you made. > > > Eric > > -- > Sent from Gmail for mobile | mobile.google.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---