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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.5.0
    • Affects Version/s: None
    • Component/s: JSON
    • None

      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"}
      

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

              Created:
              Updated:
              Resolved: