Using MultiJson instead of json_pure #157
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We use engineyard gem as a dependency in our rails app and have problems with json_pure in its dependencies.
Because our app is quite big, we use a lot of other gems, many of which depend on json gem. This produces situations, where you don't really know what implementation you're using and what exactly gets loaded when you do 'require "json"'.
Also, we had a very hard-to-track bug related to that. The problem was that we couldn't recreate it in development, cause it was using different "json" from production.
Well, anyway. Depending on multi_json seems to be a great choice for you guys, mostly because it doesn't break things in apps like ours. Also, it uses pure-ruby single-file implementation called okjson if nothing more speedy is available, so folks on jruby or rubinius won't be left behind by this change.
Somewhat relevant: engineyard/engineyard-serverside-adapter#3