When should one use JaSerializer?

I’m learning about API’s (how to create and consume them), however in several blog posts the authors use JaSerializer instead of the default json generated by Phoenix, that’s my question, why they do so? and when should I do the same?

Edit: This is what I’m talking about https://github.com/vt-elixir/ja_serializer

Thanks a lot!

I don’t know offhand which blog posts show off JaSerializer, but my guess is that the authors had the hypermedia constraint of REST in mind when making the recommendation. (See https://en.wikipedia.org/wiki/HATEOAS)

In terms of Elixir libraries that work with such a media type, I’m fairly certain that JaSerializer (for working with JSON API) is the most advanced. That’s probably why it was chosen.