I have json data where the key contains dots as '123.456' and value as object.
{
"models": {
"123.456": [{
"key1": "value1",
"key2": "value2"
}]
}
}
I am getting an mapping exception when trying to save the object in MongoDB as following
org.springframework.data.mapping.model.MappingException: Map key 123.456 contains dots but no replacement was configured!Make sure map keys don't contain dots in the first place or configure an appropriate replacement!
Is there any support to save the key as a field containing dots in Spring Mongo?