Bugfix/json string decode

This fixes the bug introduced by Rails 2.3.16 where an ActiveSupport::JSON encoded string cannot be properly decoded. The OkJson and JSONGem backends have been changed accordingly.