Hi @enkr1 this is why it’s generally not recommended to derive Jason.Encoder for your structs, and instead use dedicated functions to extract the data you need. If it’s for an API, this article is still relevant: JSON Views in Phoenix | RokkinCat
Hi @benwilson512, thank you for your time to find the relevant article!
I see! This was actually my old solution, but I found myself repeating Map.take/2 and so I refactored to use Jason.Encoder which saved me quite some time, only until this edge case (to display specific attributes only) happens.