Oxyrus

Oxyrus

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 GitHub - vt-elixir/ja_serializer: JSONAPI.org Serialization in Elixir. · GitHub

Thanks a lot!

First Post!

christopheradams

christopheradams

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 HATEOAS - Wikipedia)

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.

Where Next?

Popular in Discussions Top

acrolink
How does the two languages compare when it comes to server side application development? Any experiences or ideas? Thank you.
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
lorenzo
Hey everone! I created a prototype for my app using Nodejs for the api. But the framework I chose wasnt great (in general theresnt any g...
New
New
chuck
Let me start by stating an assumption: Phoenix is a great approach to building REST APIs. There are many reasons for this, but I will ass...
New
Fl4m3Ph03n1x
Background This question comes mainly from my ignorance. Today is Black Friday, one of my favorite days of the year to buy books. One boo...
New
shishini
I think this twitter post and youtube video didn’t get as much attention as I hoped I am still new to Elixir, so can’t really judge ...
New

Other popular topics Top

JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
dogweather
I wrote this comment on r/haskell, and it’s not popular there. :wink: But I think I’m on to something… Haskell reminds me of Java, and e...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New

We're in Beta

About us Mission Statement