Sha256: 9d9725af22e54cd0542925015b6d0fb07beaf77380e7c27c243108d3d10bc85d

Contents?: true

Size: 1.18 KB

Versions: 38

Compression:

Stored size: 1.18 KB

Contents

{
  "schema_type": "object",
  "schema_version": "1.1",
  "name": "to_json",
  "path": "packages/ree_json/package/ree_json/functions/to_json.rb",
  "mount_as": "fn",
  "class": "ReeJson::ToJson",
  "factory": null,
  "methods": [
    {
      "doc": "Dumps arbitrary object to json using specific dump mode.\n  to_json({id: 1}) # => \"{\"id\":1}\"\n  to_json({id: 1}, mode: :object) # => \"{\":id\":{\"^o\":\"Object\"}}\"\n\nList of all available Ksplat options could be found here:\nhttps://github.com/ohler55/oj/blob/develop/pages/Modes.md",
      "throws": [
        "ArgumentError",
        "TypeError"
      ],
      "return": "String",
      "args": [
        {
          "arg": "object",
          "arg_type": "req",
          "type": "Any"
        },
        {
          "arg": "opts",
          "arg_type": "keyrest",
          "type": "Ksplat[:mode? => Or[strict, null, compat, json, rails, object, custom, wab], :escape_mode? => Or[newline, json, xss_safe, ascii, unicode_xss...], :float_precision? => Integer, :time_format? => Or[], :use_as_json? => Bool, :use_raw_json? => Bool, :use_to_hash? => Bool, :use_to_json? => Bool, \"RestKeys\" => Any]"
        }
      ]
    }
  ],
  "links": [

  ]
}

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
ree_lib-1.0.103 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.102 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.101 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.100 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.99 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.98 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.97 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.96 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.95 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.94 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.93 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.92 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.91 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.90 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.89 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.88 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.87 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.86 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.85 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.84 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json