Turn "keyForAttribute" option defaults to "camelCase"
As we can check on the json-api, they recommend to use camelCase as default property naming, which makes sense as for a JavaScript Object Notation, {kebab-case: 'invalid'} is not valid object declaration in JS.
With oficial recommendation in mind, the serializer should use "camelCase" as default value for keyForAttribute option.
@rubenspgcavalcante So I have been going around looking those who are struggling to find a proper JSONAPI serializer.
Over the past few days I've designed a resource-recursive, typescript/javascript library for serializing the entire JSON:API spec. Our API is far more fluent (and obvious) than the one here (and every other serializer I have seen/used). If this serializer doesn't fit your need, you might want to check it out :) Development is active.
If you are in particular struggling with issues such as links, resource relationships, and deep recursion (essentially any of the complicated parts of the JSON:API spec), I strongly recommend moving to our library.
{TS:JAPI}: https://github.com/jun-sheaf/ts-japi