anchor.diff:  }
   ----
   
  -The vertex properly serializes to valid JSON but note that a consuming application will not automatically know how to interpret the numeric values.  In coercing those Java values to JSON, such information is lost.  For example, it is no longer clear if the `weight` value on the edges should be read as a `Double` or an `Float`.
  +The vertex properly serializes to valid JSON but note that a consuming application will not automatically know how to interpret the numeric values.  In coercing those Java values to JSON, such information is lost.  For example, it is no longer clear if the `weight` value on the edges should be read as a `Double` or a `Float`.
   
   With a minor change to the construction of the `GraphSONWriter` the lossy nature of GraphSON can be avoided:
   
   [source,groovy]
   ----
  -gremlin> f = new FileOutputStream('vertex-1.json')
  -==>java.io.FileOutputStream@43034809
  -gremlin> g.io().graphSONWriter().mapper(g.io().graphSONMapper().embedTypes(true).create()).create().writeVertex(f, g.V(1).next(), BOTH)
  +gremlin> g = TinkerFactory.createModern()
  +==>tinkergraph[vertices:6 edges:6]
  +gremlin> f = new FileOutputStream("vertex-1.json")
  +==>java.io.FileOutputStream@3bbf9027
  +gremlin> mapper = g.io().graphSONMapper().embedTypes(true).create()
  +==>com.tinkerpop.gremlin.structure.io.graphson.GraphSONMapper@2ce45a7b
  +gremlin> g.io().graphSONWriter().mapper(mapper).create().writeVertex(f, g.V(1).next(), BOTH)
   ==>null
   gremlin> f.close()
  -----
  +==>null
   
   In the above code, the `embedTypes` option is set to `true` and the output below shows the difference in the output:
   
  
positive.code: ----
  gremlin> g = TinkerFactory.createModern()
  ==>tinkergraph[vertices:6 edges:6]
  gremlin> f = new FileOutputStream('vertex-1.json')
  ==>java.io.FileOutputStream@4df39a88
  gremlin> g.io().graphSONWriter().create().writeVertex(f, g.V(1).next(), BOTH)
  ==>null
  gremlin> f.close()
  ==>null
  ----
  
  The following GraphSON example shows the output of `GraphSonWriter.writeVertex()` with associated edges:
  
  
negative.code: ----
  final Graph g = TinkerFactory.createModern();
  try (final OutputStream os = new FileOutputStream("tinkerpop-modern.json")) {
      final GraphSONMapper mapper = g.io().graphSONMapper().normalize(true).create()
      g.io().graphSONWriter().mapper(mapper).create().writeGraph(os, g)
  }
  
  final Graph newGraph = TinkerGraph.open();
  