Answer the question
In order to leave comments, you need to log in
Is it possible to use such JSON in EmberJS JSONAPISerializer?
{
"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
}
while processing route: surveys Assertion Failed: Encountered a resource object with an undefined type (resolved resource using [email protected]:surveys:) Error: Assertion Failed: Encountered a resource object with an undefined type (resolved resource using [email protected]:surveys:)
Answer the question
In order to leave comments, you need to log in
yes, JSONAPISerializer expects data in JSON API specification format
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question