Module: JSONSchema::Canonical::JSON

Defined in:
sig/jsonschema.rbs

Class Method Summary collapse

Class Method Details

.to_stringString

Serialize a Ruby value to canonical JSON.

Main use case: deduplicate equivalent JSON Schemas by using a stable string form.

Parameters:

  • object (Object)

Returns:

  • (String)


15
# File 'sig/jsonschema.rbs', line 15

def self.to_string: (untyped object) -> String