class Neo4j::Shared::TypeConverters::JSONConverter

Converts hash to/from JSON

Public Class Methods

convert_type() click to toggle source
    # File lib/neo4j/shared/type_converters.rb
255 def convert_type
256   JSON
257 end
converted?(_value) click to toggle source
    # File lib/neo4j/shared/type_converters.rb
251 def converted?(_value)
252   false
253 end
db_type() click to toggle source
    # File lib/neo4j/shared/type_converters.rb
259 def db_type
260   String
261 end
to_db(value) click to toggle source
    # File lib/neo4j/shared/type_converters.rb
263 def to_db(value)
264   value.to_json
265 end
to_ruby(value) click to toggle source
    # File lib/neo4j/shared/type_converters.rb
267 def to_ruby(value)
268   JSON.parse(value, quirks_mode: true)
269 end