ActiveModelSerializers is a popular solution in the Ruby / Rails community and I even wrote an article about it a few years ago. Recently I had a chance to cover upgrading ActiveModelSerializers from 0.8 to 0.10 on my company’s blog. You should take a look!