class Jennifer::Model::JSONConverter

Overview

Default converter for JSON::Any fields.

Converts json string to JSON::Any and back.

Defined in:

jennifer/model/json_converter.cr

Class Method Summary

Class Method Detail

def self.coerce(value : String, _options) : JSON::Any? #

[View source]
def self.from_db(pull, options) #

[View source]
def self.from_hash(hash : Hash, column, options) #

[View source]
def self.to_db(value : JSON::Any, options) : String #

[View source]
def self.to_db(value : Nil, options) : Nil #

[View source]