alexreisner/geocoder — pull request #168 by galvinhsiu (2012-01-28 20:08:01+00:00)
Title: In lookups/base, invalid JSON needs to be rescued for ActiveSupport::JSON

Currently when not using ActiveSupport::JSON,

The barebones json parse call gets rescued and throws out the following warning:

"Geocoding API's response was not valid JSON."

However, if ActiveSupport::JSON is detected, ActiveSupport::JSON call runs the parse w/o any begin / rescue blocks. We ran into this issue when running db migrations within rails w/ the Yahoo provider sporadically throwing out parse errors, stopping our db migrations dead in its tracks.