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

JIRA | Guillaume Smet | 6 months ago
  1. 0

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

    Stack Overflow | 2 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