org.bson.json.JsonParseException: JSON reader expected a string but found 'BsonRegularExpression{pattern='^Oscar', options=''}'.

JIRA | Guillaume Smet | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Spring Boot - Insert .JSON file into MongoDB with Spring Boot

    Stack Overflow | 6 months ago | Jennifer007
    org.bson.json.JsonParseException: JSON reader was expecting a value but found 'test'.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.bson.json.JsonParseException

      JSON reader expected a string but found 'BsonRegularExpression{pattern='^Oscar', options=''}'.

      at org.bson.json.JsonReader.visitRegularExpressionExtendedJson()
    2. MongoDB Java Driver
      JsonReader.readBsonType
      1. org.bson.json.JsonReader.visitRegularExpressionExtendedJson(JsonReader.java:940)
      2. org.bson.json.JsonReader.visitExtendedJSON(JsonReader.java:587)
      3. org.bson.json.JsonReader.readBsonType(JsonReader.java:139)
      3 frames