jbuilder
https://github.com/rails/jbuilder
Ruby
Jbuilder: generate JSON objects with a Builder-style DSL
Jbuilder.encode
Yields a builder and automatically turns the result into a JSON string
Edit
git clone [email protected]:rails/jbuilder.git
cd jbuilder
open lib/jbuilder.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Jbuilder-encode-for-pr
# Commit to gitgit add lib/jbuilder.rbgit commit -m "better docs for Jbuilder.encode"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Jbuilder-encode-for-pr
hub pull-request
# Celebrate!