Class: ReeJson::Constants

Inherits:
Object
  • Object
show all
Defined in:
lib/ree_lib/packages/ree_json/package/ree_json/constants.rb

Constant Summary collapse

MODES =

see detailed docsumentation for modes github.com/ohler55/oj/blob/develop/pages/Modes.md

[
  :strict,
  :null,
  :compat,
  :json,
  :rails,
  :object,
  :custom,
  :wab,
].freeze
ESCAPE_MODES =
[
  :newline, # allows unescaped newlines in the output.
  :json, # follows the JSON specification. This is the default mode.
  :xss_safe, # escapes HTML and XML characters such as & and <.
  :ascii, # escapes all non-ascii or characters with the hi-bit set.
  :unicode_xss, # escapes a special unicodes and is xss safe.
].freeze
TIME_FORMATS =
[].freeze
DEFAULT_OPTIONS =
{
  time_format: :xmlschema,
  use_as_json: true,
  mode: :rails,
}.freeze