Class: Synapse::Serialization::JsonToObjectConverter

Inherits:
Object
  • Object
show all
Includes:
Converter
Defined in:
lib/synapse/serialization/converter/json.rb

Overview

Converter that converts a JSON string into a Ruby data structure

Instance Method Summary collapse

Methods included from Converter

#convert, #initialize

Instance Method Details

#convert_content(original) ⇒ Object

Parameters:

  • original (Object)

Returns:

  • (Object)


13
14
15
# File 'lib/synapse/serialization/converter/json.rb', line 13

def convert_content(original)
  JSON.parse original, @options
end