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