stephen mallette created TINKERPOP-2156:
-------------------------------------------
Summary: GraphSON BigInteger and BigDecimal should use strings
Key: TINKERPOP-2156
URL: https://issues.apache.org/jira/browse/TINKERPOP-2156
Project: TinkerPop
Issue Type: Improvement
Components: io
Affects Versions: 3.3.5
Reporter: stephen mallette
Assignee: stephen mallette
Both {{BigDecimal}} and {{BigInteger}} serialize to JSON numeric as follows:
{code}
{
"@type" : "gx:BigDecimal",
"@value" : 123456789987654321123456789987654321
}
{code}
but should probably serialize to a string value instead. Jackson 2.10 should
support that option and make it easier for other language variants to handle.
Interestingly Jackson 2.9.8 which we are currently on seems to support the
consumption of either number or string so it seems likely that this can be done
without a significant breaking change. From the point we implement this we can
simply say that going forward we will prefer support of a string value.
As this change would still be breaking to those who consume raw graphson or
something, the "breaking" label is added to this ticket.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)