Upgrading Rails part 2: JSON parsing
My app relies heavily on JSON. The JSON parser in ActiveSupport was enhanced in the new release to parse and convert strings which represent dates to actual Date objects. The method responsible for this is rather long. In my case some of my parsers suddenly died with an Invalid JSON string error. Long story short the code which extracts the date also remembers where the delimiting double quotes are for removal later. However this does not correctly work and it ends up removing other characters entirely. This obviously does not sit well with the downstream parser as this now get an invalid JSON string. I created a (ticket)[http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2273] describing this behaviour further.
I worked around the problem by removing certain character sequences in the input stream.