Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-101176

Rename toEJSON() back to toJsonForLog()

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • Fully Compatible
    • QE 2025-03-03, QE 2025-03-17
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Although toJsonForLog() may return output conforming to EJSON, we don't want to guarantee that it is and stays EJSON.

      The main objectives of this function are:

      • serialize JavaScript values for logging and debugging
      • return a valid JSON string
      • add type information for selected non-native JSON types (native types are Boolean, Number, String, Object, Array, null)
      • detect recursive objects to avoid recursing forever

            Assignee:
            serhii.lysenko@mongodb.com Serhii Lysenko
            Reporter:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: