Use rabl gem to create nicely formatted json response.