On Jan 21, 7:25 pm, Bertilo Wennergren <berti...@gmail.com> wrote:
> On Fri, Jan 21, 2011 at 11:10, stefan <ste...@ott.net> wrote:
> > I've been using prototype for a while now and I quite enjoy it.
> > However, it seems that with the recent upgrade from 1.6 to 1.7 the
> >toJSONmethod on hashes broke (or the way that I'm using it is no
> > longer supported). Since I could not find any information about this
> > anywhere, I'm posting here.
> Indeed "toJSON" has disappeared from Array and (as it seems)
> also from Hash. I was bit by this (I had to rework a lot of code).
> We are now supposed to use "Object.toJSON(MyArray)" and
> "Object.toJSON(MyHash)" instead (although I haven't
> actually had occasion to do that with hashes).

Ah, thanks, that seems to work!


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 
For more options, visit this group at 

Reply via email to