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

Improve error message when failing to parse json

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • QO 2023-04-17

    Description

      The 'fromjson' helper gives you the offset of the bad character, but this is often not that helpful since you cannot visually tell what "offset 65" is - you'll need to go put it into another tool. 

      The idea for this ticket is to highlight that substring/offset better in the logs.

      Attachments

        Activity

          People

            charlie.swanson@mongodb.com Charlie Swanson
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: