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

a escape sequence BUG

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical - P2 Critical - P2
    • None
    • 3.0.1
    • Release
    • None

    Description

      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!

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: