I prefer clarity. Rails has an opinion how to deliver JSON. Angular is less opinionated.

Invoking a mixin abstracts it.