Is this sample in a correct format based on JSON API specifications? In another word can we have in attributes an array?
{
"meta": {
},
"links": {
"self": ""
},
"jsonapi": {
"version": "",
"meta": {
}
},
"data": {
"type": "typeof(class)",
"id": "string",
"attributes": [
{
"item1": "Value1",
"item2": "Value2",
"item3": "Value3"
}
],
"links": {
"self": ""
}
}
}
I am not sure even after reading that (link) If correct how can I Deserialize it I am using JSONAPISerializer package in C#
> then when I use JsonConvert.SerializeObject this crash because I miss the ID
> and fill with data. When I try to serialize it it crash JsonConvert.SerializeObject(root, this.settings); with exception of "Resource identifier objects MUST contain 'id' members."
– tulipe Dec 03 '22 at 13:18