Full threadzrail·If I were writing an API in Ruby today I would define my output types as Sorbet structs and call `serialize.to_json` on them at render time. I haven't benchmarked it against anything but it seems reasonably fast.View on HN