jsonapi-serializer icon indicating copy to clipboard operation
jsonapi-serializer copied to clipboard

Automatically calculate attribute list

Open multimeric opened this issue 6 years ago • 0 comments

By default, I think most users would want to serialize all fields on the input data, rather than none. Is it possible to change this default behaviour? This is a duplicate of #27, but that got closed a long time ago.

multimeric avatar Nov 28 '19 04:11 multimeric

@TMiguelT 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

jrandolf avatar May 20 '20 17:05 jrandolf