Playing baseball is fun.

Literal

Baseball [obj-を] do-[nom-のは] fun.

The cleanest possible [verb]+のは+adjective nominalization, stating an activity is enjoyable. 楽しい ('fun, enjoyable') is a subjective adjective — used of things the speaker personally finds pleasurable.