Module: ActiveSupport::JSON::Encoding
Do not use. This module is for internal use only.
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Defined in: | activesupport/lib/active_support/json/encoding.rb |
Class Attribute Summary
-
.escape_html_entities_in_json
rw
If true, encode >, <, & as escaped unicode sequences (e.g.
-
.json_encoder
rw
Sets the encoder used by Rails to encode Ruby objects into
::ActiveSupport::JSON
strings inObject#to_json
and encode. -
.time_precision
rw
Sets the precision of encoded time values.
-
.use_standard_json_time_format
rw
If true, use ISO 8601 format for dates and times.
Class Attribute Details
.escape_html_entities_in_json (rw)
If true, encode >, <, & as escaped unicode sequences (e.g. > as u003e) as a safety measure.
# File 'activesupport/lib/active_support/json/encoding.rb', line 103
attr_accessor :escape_html_entities_in_json
.json_encoder (rw)
Sets the encoder used by Rails to encode Ruby objects into ::ActiveSupport::JSON
strings in Object#to_json
and ActiveSupport::JSON.encode.
# File 'activesupport/lib/active_support/json/encoding.rb', line 111
attr_accessor :json_encoder
.time_precision (rw)
Sets the precision of encoded time values. Defaults to 3 (equivalent to millisecond precision)
# File 'activesupport/lib/active_support/json/encoding.rb', line 107
attr_accessor :time_precision
.use_standard_json_time_format (rw)
If true, use ISO 8601 format for dates and times. Otherwise, fall back to the Active Support legacy format.
# File 'activesupport/lib/active_support/json/encoding.rb', line 99
attr_accessor :use_standard_json_time_format