Skip to content

Commit

Permalink
Document that the json plugin does not support treating String, False…
Browse files Browse the repository at this point in the history
…Class, NilClass values as JSON (Fixes #329)
  • Loading branch information
jeremyevans committed Aug 8, 2023
1 parent 44a7e0e commit f7c2752
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/roda/plugins/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ module RodaPlugins
# using the +:content_type+ option:
#
# plugin :json, content_type: 'application/xml'
#
# This plugin depends on the custom_block_results plugin, and therefore does
# not support treating String, FalseClass, or NilClass values as JSON.
module Json
# Set the classes to automatically convert to JSON, and the serializer to use.
def self.configure(app, opts=OPTS)
Expand Down

0 comments on commit f7c2752

Please sign in to comment.