James "Jim" Halpert is a fictional character in the United States version of the television sitcom The Office, played by John Krasinski. The character is based on Tim Canterbury from the original version of The Office. The character is named after a childhood friend of executive producer Greg Daniels.
Jim Halpert is the intelligent, but unmotivated paper salesman at the Scranton branch of fictitious paper-goods distributor Dunder Mifflin. Jim spends much of his time conspiring with co-worker, and current fiancee, Pam Beesly, to engineer pranks on his overbearing deskmate Dwight Kurt Schrute. Early episodes showed Jim yearning for Pam while she was then previously engaged to Roy Anderson, and much of the dramatic content of those episodes of the show derived from Jim's secret crush.
It is often implied through the context of Jim's comments and through the comments of others that he is both overqualified for and uninterested in his job, to the extent that the first sale he claims to 'try' making is during the fourth season, despite a previously stated rank of Dunder Mifflin's ninth overall best salesman; he only stays because of his hope to be with Pam, a hope that was finally fulfilled by season 4. Due to his dry, deadpan manner, Jim is something of a straight man for the show and acts as the comic foil for Michael and Dwight. Jim is revealed to be a very responsible person, though somewhat of a loner, in his private life.
Jim tells Pam that he does not have much of a social life, staying home and watching TV most nights, a fact that both Pam and Jim have made fun of on different occasions. In the first two seasons, Jim is revealed to be renting a house with a roommate, Mark. In the show's fifth season, Jim purchases his parents' house for Pam and himself.