Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2360

Binary subtype should be output as a two-digit padded hexadecimal string in JSON representation

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.5.0
    • None
    • JSON
    • None

    Description

      Currently the leading 0 is omitted when formatting a one digit binary subtype as JSON:

      { ... "$type" : "0"}
      

      Expected result according to the Extended JSON specification is:

      { ... "$type" : "00"}
      

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: