Alexander Klimetschek created JCR-4085:
------------------------------------------
Summary: DavEx json should always add type information for Doubles
Key: JCR-4085
URL: https://issues.apache.org/jira/browse/JCR-4085
Project: Jackrabbit Content Repository
Issue Type: Bug
Components: jackrabbit-jcr-server
Affects Versions: 2.12.6
Reporter: Alexander Klimetschek
In JSON, there is only a single numeric type which can be both integer and
floating point. A floating point with a ".0" decimal will look like an integer,
e.g. "5.0" => "5", serialized or interpreted as such by parsers.
Hence to correctly keep the type information for davex clients, the type
information in the separate ":<prop>" property should always be included for
double jcr properties, in
[JsonWriter.requiresTypeInfo()|https://github.com/apache/jackrabbit/blob/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/server/remoting/davex/JsonWriter.java#L221-L236].
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)