sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
MultiJson::OkJson#encode
Encodes x into a json text. It may contain only Array, Hash, String, Numeric, true, false, nil. (Note, this list excludes Symbol.) X itself must be an Array or a Hash. No other value can be encoded, and an error will be raised if x contains any other value, such as Nan, Infinity, Symbol, and Proc, or if a Hash key is not a String. Strings contained in x must be valid UTF-8.
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/multi_json/lib/multi_json/vendor/okjson.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-MultiJson--OkJson-encode-for-pr
# Commit to gitgit add app/server/ruby/vendor/multi_json/lib/multi_json/vendor/okjson.rbgit commit -m "better docs for MultiJson::OkJson#encode"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-MultiJson--OkJson-encode-for-pr
hub pull-request
# Celebrate!