Closed janko closed 9 years ago
Maybe before all resources were shown as an array, but now the JSON API documentation states that singular resources should be returned as a hash instead of an array:
{ "data": { "type": "articles", "title": "Singular" } }
You can see that e.g. in Top level. Since JSON API is in RC3 now, we can safely assume this isn't going to change before 1.0.
Looks good. Thanks for the patch!
Maybe before all resources were shown as an array, but now the JSON API documentation states that singular resources should be returned as a hash instead of an array:
You can see that e.g. in Top level. Since JSON API is in RC3 now, we can safely assume this isn't going to change before 1.0.