Sha256: 52877728d5fa54fc8749cd79c0ed3fcb07fbf58f8964700758c25f94bad7e609

Contents?: true

Size: 704 Bytes

Versions: 65

Compression:

Stored size: 704 Bytes

Contents

class ReeJson::Constants
  # see detailed docsumentation for modes
  # https://github.com/ohler55/oj/blob/develop/pages/Modes.md

  MODES = [
    :strict,
    :null,
    :compat,
    :json,
    :rails,
    :object,
    :custom,
    :wab,
  ]

  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.
  ]

  TIME_FORMATS = []

  DEFAULT_OPTIONS = {
    time_format: :xmlschema,
    use_as_json: true
  }.freeze
end

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
ree_lib-1.0.4 lib/ree_lib/packages/ree_json/package/ree_json/constants.rb
ree_lib-1.0.3 lib/ree_lib/packages/ree_json/package/ree_json/constants.rb
ree_lib-1.0.2 lib/ree_lib/packages/ree_json/package/ree_json/constants.rb
ree_lib-1.0.1 lib/ree_lib/packages/ree_json/package/ree_json/constants.rb
ree_lib-1.0.0 lib/ree_lib/packages/ree_json/package/ree_json/constants.rb