The issue in question is as follows:-
I have a POJO with a list of Apple objects , say applesList
.
This is stored in Cosmos DB.
When applesList
is null
, the get endpoint works fine. I get the Pojo as is.
When applesList
is populated with apples, i get the error as given in the Title.
How do i fix this?
Json that works with get :-
{
"userId" : "123",
"applesList" : null
}
Json that gives stated error on get, applesList is populated by api :-
{
"userId" : "123",
"applesList" : [
{
"color" : "red",
"weight" : "150 g"
},
{
"color" : "green",
"weight" : "200 g"
}
]
}
Edit :- missed mentioning Cosmos DB SQL API