Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Serialize to property for neo4j
module Neo4j
module TypeConverters
class SerializeConverter
# serializes to sting
class << self
def convert?(type)
type == :serialize
end
def to_java(value)
return nil unless value
JSON.generate(value).to_s
end
def to_ruby(value)
return nil unless value
JSON.parse(value.to_s)
end
end
end
end
end
Neo4j::TypeConverters.converters = nil # reload converters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.