The jsonapi.org serializers in JS right now are not great.
They don't account well for includes
, fields
, attribute
definitions, relations
definitions.
Denali does handle jsonapi.org well but the serialization is coupled to rest of the framework.
json-api-serializer
has type registrations but does not handle request options like sparsefieldsets or includes.
I think the API provided for json-api-serializer
is close but to add support for the missing options I think a new API should be changed a bit.