Back porting rails 2 json serialization

I’m working on a project with a large json api component. We are not
ready to upgrade to rails 2 at this point; however, I was wondering if
anybody had thought about backporting the rails 2 json serialization
back to 1.2.x. I created a quick plugin this morning just of the
ActiveRecord and ActiveSupport files involved in the rails 2 json
serialization and it seems to work. Has anybody else considered doing
this or know of a reason why it might be problematic?

Thanks!
Will

Before proper json support was added to the rails trunk, I was using
the jsonifier plugin. It worked fine, except with serializing
datetimes (but I think that was a problem with rails)

does JSONifier support serialization of included associations and
instance methods as the rails 2 code serializer does?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs