Provides encoding and decoding to content types. Supported types are plain text, HTML and JSON.
To install it, add the gem to your Gemfile:
gem 'spine-content_types'Then run bundle. If you're not using Bundler, just gem install spine-content_types.
hash = Spine::ContentTypes::Json.load('{ "test": 12345 }')
json = Spine::ContentTypes::Json.dump(hash)