Skip to content

Latest commit

 

History

History
101 lines (37 loc) · 985 Bytes

JSONConverter.rst

File metadata and controls

101 lines (37 loc) · 985 Bytes

JSONConverter

Converts hash to/from JSON

Constants

Files

Methods

.convert_type

ruby

def convert_type

JSON

end

.db_type

ruby

def db_type

String

end

.to_db

ruby

def to_db(value)

value.to_json

end

.to_ruby

ruby

def to_ruby(value)

JSON.parse(value, quirks_mode: true)

end