You can do `{ |all, version| all.update(version => Apipie.to_json(version) }`