[SERVER-75837] Improve error message when failing to parse json Created: 07/Apr/23  Updated: 29/Oct/23  Resolved: 11/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Charlie Swanson Assignee: Charlie Swanson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: QO 2023-04-17
Participants:

 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.



 Comments   
Comment by Githook User [ 10/Apr/23 ]

Author:

{'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'}

Message: SERVER-75837 Better fromjson error messages
Branch: master
https://github.com/mongodb/mongo/commit/06f88815aada16637efd1929f02e3a81998244d9

Generated at Thu Feb 08 06:31:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.