How can i decode below result into struct?
The problem is that the fields is not an array it seems, is it possible to put in a struct, and how?
I am using the JsonToDataType for this
My struct is like this
Code:
struct stFields
string restaurantName
end_struct
struct stDocuments
string name
stFields fields
end_struct
struct stRoot
stDocuments[] documents
end_struct
Code:
{
"documents": [
{
"name": "/usage_history/1VfZ4tBQ07euhsjQvWg2",
"fields": {
"restaurantName": {
"stringValue": "LunchBrejk AB Test"
},
"xUsed": {
"integerValue": "2"
},
"cardName": {
"stringValue": "10 Lunch exkl. dryck 1"
},
"time": {
"timestampValue": "2021-02-26T10:33:36.292Z"
}
}
}
]
}