thephpleague/fractal — pull request #105 by alairock (2014-09-24 14:48:08+00:00)
Title: Update JsonApiSerializer.php

If you are going off of http://jsonapi.org, single item's should return as nested key value pairs underneath the resource key. They should not be returning inside of an array (Since, there should only be one item returning, as far as I could tell)

http://jsonapi.org/format/#document-structure-individual-resource-representations

Current (And, from what I can tell, incorrect)

{
"data": [
{
"key": "value"
......
}
]
}

Updated as part of this pull request

{
"data": {
"key": "value"
......
}
}