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 248 def convert_type 249 JSON 250 end
db_type()
click to toggle source
# File lib/neo4j/shared/type_converters.rb 252 def db_type 253 String 254 end
to_db(value)
click to toggle source
# File lib/neo4j/shared/type_converters.rb 256 def to_db(value) 257 value.to_json 258 end
to_ruby(value)
click to toggle source
# File lib/neo4j/shared/type_converters.rb 260 def to_ruby(value) 261 JSON.parse(value, quirks_mode: true) 262 end