Question: who does john krasinski play in the office
Answer: John Krasinski portrays Jim Halpert , a salesman and , in later seasons , co-manager who is often known for his wittiness and his hijinks on Schrute ( often accompanied by Pam Beesly ) .