Sha256: ee5627d2aee21e0fb60b6b3b2f57440e42855375ec88d7d82dcc669e92f98ddc

Contents?: true

Size: 1.24 KB

Versions: 33

Compression:

Stored size: 1.24 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"
      ],
      "return": "String",
      "args": [
        {
          "arg": "object",
          "arg_type": "req",
          "type": "Any"
        },
        {
          "arg": "mode",
          "arg_type": "key",
          "type": "Or[strict, null, compat, json, rails, object, custom, wab]"
        },
        {
          "arg": "opts",
          "arg_type": "keyrest",
          "type": "Ksplat[: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

33 entries across 33 versions & 1 rubygems

Version Path
ree_lib-1.0.65 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.64 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.63 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.62 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.61 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.60 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.59 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.58 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.57 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.56 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.55 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.54 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.53 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.52 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.51 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.50 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.49 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.48 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.47 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json
ree_lib-1.0.46 lib/ree_lib/packages/ree_json/schemas/ree_json/functions/to_json.schema.json