Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-4085

DavEx json should always add type information for Doubles

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.12.6
    • 2.14, 2.13.7
    • jackrabbit-jcr-server
    • None

    Description

      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().

      Attachments

        Issue Links

          Activity

            People

              reschke Julian Reschke
              alexander.klimetschek Alexander Klimetschek
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: