Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-955

a escape sequence BUG

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 3.0.1
    • Component/s: Release
    • Labels:
      None

      Recently,I found a strange phenomenon that most data can be read correctly,but there are a piece of data cannot work normally,it looks like this:

      {
          "_id" : 146,
      
          omit
      
          "introduce" : "Servers need a way to know who a user is. \"Once a server knows who the user is, it can decide which transactions and resources the user can access. \" ",
      
          omit
      
      }
      

      Did you notice that there are a escape sequence in the vaue of key introduce?
      if there are a escape sequence in the values,c++ driver json parse function will give a error :
      json parse(): has error, <unspecified file>(23): expected '}' or ','

      Please fix this bug,thanks!

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            baoq1991@126.com qi bao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: