Github user newkek commented on a diff in the pull request: https://github.com/apache/tinkerpop/pull/499#discussion_r88769639 --- Diff: gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/graphson/GraphSONSerializersV2d0.java --- @@ -193,44 +217,46 @@ public VertexPropertyJacksonSerializer(final boolean normalize, final boolean in } @Override - public void serialize(final VertexProperty property, final JsonGenerator jsonGenerator, final SerializerProvider serializerProvider) + public void serialize(final VertexProperty vertexProperty, final JsonGenerator jsonGenerator, final SerializerProvider serializerProvider) throws IOException { jsonGenerator.writeStartObject(); - jsonGenerator.writeObjectField(GraphSONTokens.ID, property.id()); - jsonGenerator.writeObjectField(GraphSONTokens.VALUE, property.value()); - if (includeLabel) - jsonGenerator.writeStringField(GraphSONTokens.LABEL, property.label()); - tryWriteMetaProperties(property, jsonGenerator, normalize); + jsonGenerator.writeObjectField(GraphSONTokens.ID, vertexProperty.id()); + jsonGenerator.writeObjectField(GraphSONTokens.VALUE, vertexProperty.value()); + if (null != vertexProperty.element()) + jsonGenerator.writeObjectField(GraphSONTokens.VERTEX, vertexProperty.element().id()); --- End diff -- Same as https://github.com/apache/tinkerpop/pull/499/files#r88769610
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---