Convention for the JSON data format for item


#1

Hello,

previously when I used ember-data, the convention for the data format to use in communication between the server and the client for a single item (called document in http://jsonapi.org) was like this:

{
    "singular_name" : {
        "id" : 1
        ...
    }
}

and a collection of items:

{
    "plural_name" : [{
        "id" : 1
        ...
    }, {
        "id" : 2
        ...
    }]
}

but in http://jsonapi.org it is defined to always return a list of objects (documents) annotated by the plural name; thus for a singular item:

{
    "plural_name" : [{
        "id" : 1
        ...
    }]
}

and for a collection of items:

{
    "plural_name" : [{
        "id" : 1
        ...
    }, {
        "id" : 2
        ...
    }]
}

So apparently there is no need for a singular name for a resource anymore. I like this convention better, but I wanted to be sure that I understood things correctly. Have the conventions changed from the former to the latter?