intridea/multi_json — pull request #112 by jgwmaxwell (2013-04-20 21:03:26+00:00)
Title: Prefer JrJackson to JSON gem

Hi,

Really delighted to see JrJackon support in MultiJson, thanks to @guyboertje, @rwz and @sferik for all their hard work!

This pull request addresses the fact that I feel that JrJackson should be preferred to the JSON gem if it present, due to it being close to an order of magnitude more performant! Currently MultiJson will pluck out JSON as the backend in a rails install, even if JrJackson is in the Gemfile.

This change causes the opposite behaviour, delegating to the far more performant solution first, whereas all specs are still green.

Hope that people agree that this is a good idea, thanks for an awesome project!

John