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