Filter activeresource response body

Hello,
I have an ActiveResource model that loads imperfectly structured json
from a third party service. I need to catch response before its parsed
by the model and make a few corrections on the json.
How should I go about doing this?

thanks,
Slava

found a way :slight_smile:
had to overwrite instantiate_record method inside ActiveResource.