I'am trying to save the outcome from an JSON API to a MongoDB collection. The JSON data I'am trying to save has the following structure:
compatibility: {
2.7.1: {
2.2.6: [
100,
1,
1
]
},
2.8.3: {
2.2.6: [
100,
2,
2
]
}
}
But I'am getting the following error: The dotted field '2.7.1' in 'compatibility.2.7.1' is not valid for storage.
Does anyone know how to fix this?