Paramount has picked up the movie rights to Greg Grunberg’s two-part graphic novel “Dream Jumper.” Grunberg will team up with long-time buddy J.J. Abrams and his Bad Robot banner to produce the adaptation.

The story follows a boy who discovers he can jump into other people’s dreams. But that power turns into a nightmare, literally, when his friends begin falling into an endless sleep, and an inhabitant of the dream world wants the boy’s abilities for itself.

Paramount had no comment.

Grunberg co-wrote the book with Lucas Turnbloom, who also illustrated. Scholastic is publishing the first book June 28, 2016.

Lindsey Weber of Bad Robot will produce with Abrams.

Abrams and Grunberg’s ties go back to Abrams’ TV show “Felicity,” which Abrams created and Grunberg co-starred in. Since then, Grunberg has been a staple in Abrams’ projects; he co-starred in Abrams’ “Alias,” and made cameos in “Star Trek,” “Mission: Impossible 3” and most recently “Star Wars: the Force Awakens.”

For his solo credits, Grunberg most recently finished his stint on “Heroes: Reborn,” where he reprised his role of Matt Parkman.

Turnbloom is an award-winning cartoonist and illustrator who’s best known for his comic strip Imagine THIS.

Both Grunberg and Turnbloom are repped by Paradigm and Susan Calogerakis Management. Grunberg is additionally repped by attorney Karl Austen of Jackoway Tyerman.

The news was first reported by the Hollywood Reporter.