Closed pinx closed 5 years ago
Anything not explicitly implemented here is passed as is to Poison: https://github.com/vt-elixir/ja_serializer/blob/master/lib/ja_serializer/formatter.ex.
While Poison does encode maps, I do not believe it will encode tuples (which is what your example shows) as there isn't really a JS equivalent.
The JSON-API allows putting child objects in attributes
JaSerializer runs into an error in Poison.encode: unable to encode {nil, "comments"} Poison can serialize maps, so it seems a matter of handing it over from JaSerializer.