class method
self.encode
Ruby on Rails 7.1.6
Since v2.2.3Signature
self.encode(value, options = nil)
No documentation comment.
Parameters
-
valuereq -
optionsopt = nil
Source
# File activesupport/lib/active_support/json/encoding.rb, line 22
def encode(value, options = nil)
Encoding.json_encoder.new(options).encode(value)
end
Defined in activesupport/lib/active_support/json/encoding.rb line 22
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::JSON