Class GraphSONWriter

  • All Implemented Interfaces:
    GraphWriter

    public final class GraphSONWriter
    extends Object
    implements GraphWriter
    A @{link GraphWriter} that writes a graph and its elements to a JSON-based representation. This implementation only supports JSON data types and is therefore lossy with respect to data types (e.g. a float will become a double). Further note that serialized Map objects do not support complex types for keys. Edge and Vertex objects are serialized to Map instances. If an Element is used as a key, it is coerced to its identifier. Other complex objects are converted via Object.toString() unless a mapper serializer is supplied.
    Author:
    Stephen Mallette (http://stephen.genoprime.com)