Some samples of building JSON representations of data with JBuilder, Active Model Serializers, and RABL.