org.springframework.data.mapping.model.MappingException: Could not parse given String to save into a JSON document!

Spring JIRA | Pedro Rodriguez | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

    Root Cause Analysis

    1. org.springframework.data.mapping.model.MappingException

      Could not parse given String to save into a JSON document!

      at org.springframework.data.mongodb.core.MongoTemplate.doSave()
    2. Spring Data MongoDB - Core
      MongoTemplate.save
      1. org.springframework.data.mongodb.core.MongoTemplate.doSave(MongoTemplate.java:809)
      2. org.springframework.data.mongodb.core.MongoTemplate.save(MongoTemplate.java:750)
      2 frames