Very DSON is improves the accessibility of your Rails project by allowing you to render your API results in DSON - Doge Serialized Object Notation.
Quick Start
Add the gem to your Gemfile:
gem "very_dson"
# or, get the latest:
# gem "very_dson", github: "bolandrm/very_dson", branch: "master"
Run bundle install
.
In your controllers, you can now render DSON:
class DogeController < ApplicationController
def index
render dson: { "foo" => ["bar", "baz", "fizzbuzz"], doge: true }
end
end
This will output the following:
such "foo" is so "bar" also "baz" also "fizzbuzz" many? "doge" is yes wow
License
MIT.