{
"data": {
"surveys": [
{
"id": 27,
"shortcode": "rk",
"question": "test test",
"date_start": "2016-05-18 01:15:00",
"date_end": "2016-05-18 01:20:00",
"is_private": "No",
"votes": 0
},
{
"id": 28,
"shortcode": "je",
"question": "test test",
"date_start": "2016-05-18 01:15:00",
"date_end": "2016-05-18 01:20:00",
"is_private": "No",
"votes": 0
},
{
"id": 39,
"shortcode": "2a",
"question": "test?",
"date_start": "2016-05-30 03:00:00",
"date_end": "2016-05-30 03:15:00",
"is_private": "No",
"votes": 0
}
],
"total_records": "38"
},
"errors": [],
"success": true
}
или с каким то другим ? буду рад любому совету Json поменять не смогу нужно решение именно к нему
как я могу такой JSON вернуть через Serializer массив модель ?
возвращает такую ошибку
while processing route: surveys Assertion Failed: Encountered a resource object with an undefined type (resolved resource using skynixcrm-app@serializer:surveys:) Error: Assertion Failed: Encountered a resource object with an undefined type (resolved resource using skynixcrm-app@serializer:surveys:)