Module: Jekyll::Filters::Json
- Defined in:
- lib/jekyll/filters/json.rb
Instance Method Summary collapse
-
#json(object) ⇒ String
Converts an object to JSON.
Instance Method Details
#json(object) ⇒ String
Converts an object to JSON
Note: Jekyll 4 has a jsonify filter now.
12 13 14 15 16 |
# File 'lib/jekyll/filters/json.rb', line 12 def json(object) require 'json' JSON.dump object end |