[
https://issues.apache.org/jira/browse/TINKERPOP-2963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17740283#comment-17740283
]
ASF GitHub Bot commented on TINKERPOP-2963:
-------------------------------------------
phanindhra876 commented on code in PR #2115:
URL: https://github.com/apache/tinkerpop/pull/2115#discussion_r1253447728
##########
gremlin-driver/src/main/java/org/apache/tinkerpop/gremlin/driver/ser/Serializers.java:
##########
@@ -54,6 +55,8 @@ public MessageSerializer<?> simpleInstance() {
return new GraphSONMessageSerializerV3d0();
case SerTokens.MIME_GRAPHSON_V1D0:
return new GraphSONMessageSerializerGremlinV1d0();
+ case SerTokens.MIME_GRAPHSON_V1D0_SPARSE:
Review Comment:
On server side it depends on the order of serializers defined in
serializerSettings. Which is the first in the serializerSettings field will be
picked for application/json.
I believe this snippet of code is used in gremlin driver. Not sure how it
works on client side.
> Introduce new mimeType to return GraphSon-1.0 in text format
> ------------------------------------------------------------
>
> Key: TINKERPOP-2963
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2963
> Project: TinkerPop
> Issue Type: Improvement
> Reporter: Phanindhra
> Priority: Major
> Fix For: 3.7.0, 3.6.5
>
>
> Users/Providers who wish to use GraphSON-1.0 in text format should make
> serializer
> {{_GraphSONMessageSerializerV1d0_}} default serializer. Alternatively
> introduce new mimeType {{_application/vnd.gremlin-v1.0+json;sparse=true_}} to
> let users/providers use GraphSON-1.0 in text format without changing defaults.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)