Follow the Instructions from the Ruby Installer Developer Kit Wiki:
- Download Ruby 1.9.3 from rubyinstaller.org
- Download DevKit file from rubyinstaller.org
- For Ruby 1.9.3 use DevKit-tdm-32-4.5.2-20110712-1620-sfx.exe
- Extract DevKit to path C:\Ruby193\DevKit
- Run
cd C:\Ruby193\DevKit
- Run
ruby dk.rb init
- Run
ruby dk.rb review
- Run
ruby dk.rb install
To return to the problem at hand, you should be able to install JSON (or otherwise test that your DevKit successfully installed) by running the following commands which will perform an install of the JSON gem and then use it:
gem install json --platform=ruby
ruby -rubygems -e "require 'json'; puts JSON.load('[42]').inspect"