intridea/multi_json — pull request #65 by rwz (2012-12-06 12:26:10+00:00)
Title: Guard against Oj Fixnum TypeError

We've decided to switch to Oj recently and it didn't went very well. Turned out that some of the json we're feeding to `MultiJson.dump` contained hashes with Fixnum keys in it.

Other adapters are happily chewing it by simply converting Fixnum keys into strings without any problems. Oj errors on this:

```
TypeError: In :compat mode all Hash keys must be Strings or Symbols, not Fixnum.```
```

This change stringifies the object before passing it to `Oj.dump` making the whole thing consistent with other adapters.