I have a JSON object coming from an API that looks something like:
{
"version": "3.0.0",
"posts": [
{
"id": 1,
"title": "Some Post"
},
{ ... }
]
}
But when the Ember app makes the request to the API (using the RESTAdapter), Ember gives me this error:
Your server returned a hash with the key version but you have no mapping for it.
Is there a way to handle, or otherwise ignore that key? The documentation explains how to handle an irregular key in the object, but I can't find anything about keys outside of the object. It seems like this would be a pretty common scenario.
Thanks!