Class: KwalifyToJsonSchema::Serialization::Json

Inherits:
Language
  • Object
show all
Defined in:
lib/kwalify_to_json_schema/serialization.rb

Class Method Summary collapse

Methods inherited from Language

normalize

Class Method Details

.deserialize(string) ⇒ Object



43
# File 'lib/kwalify_to_json_schema/serialization.rb', line 43

def self.deserialize(string); JSON.parse(string); end

.serialize(object) ⇒ Object



42
# File 'lib/kwalify_to_json_schema/serialization.rb', line 42

def self.serialize(object); JSON.pretty_generate(object); end