I agree that you should install your own ruby versions and tools for Xcode developers, but in a scenario where you want to make it work for people who don’t have these things, set the gemstone on json_pure, which is a purely ruby implementation (so not the fastest, but super compatible).
Require 'json' will use it automatically.
Steven soroka
source share