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

Add ability to cap the size of JSON generated by JsonWriter

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.0
    • Affects Version/s: None
    • Component/s: JSON
    • Labels:
      None

      It's useful to cap the length of JSON text when generating log statements that contain BSON documents. While one can generate the full JSON text and then take a substring, it's more efficient to stop writing as soon as the max size is reached, saving both memory and CPU.

            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: