The Encores! revival of this fairy-tale musical, with songs by Stephen Sondheim, arrives on Broadway with its humor, wonder and humanity intact.After the woods and the wolf and the dark and the knife, Little Red Riding Hood has learned a thing or two. In the first act of “Into the Woods,” while modeling a cloak made from the wolf’s pelt, she shares her wisdom. Be prepared, she advises in “I Know Things Now.” Watch out for strangers. Stephen Sondheim’s bone-dry lyrics supply one more maxim: “Nice,” Little Red concludes, “is different than good.”True. But isn’t it splendid when a work of musical theater is absolutely both?Lear deBessonet’s superb production of the Sondheim and James Lapine modern classic “Into the Woods,” which originated at Encores! in May, has made the journey west and south to Broadway. Despite some cast changes, its humor, wonder and humanity have arrived intact. Indeed, they may glimmer even more brightly at the St. James Theater than they did at City Center. So if you saw that recent staging, should you go into the woods again? Unless your budget doesn’t run to Broadway prices, of course you should. To put it another way: Wishes come true, not free.A pastiche of a half-dozen Perrault and Brothers Grimm fairy tales, “Into the Woods” debuted at the Old Globe Theater in San Diego in 1986 and on Broadway the following year. It had a respectful Broadway revival, directed by Lapine, in 2002, and a misbegotten stint at Shakespeare in the Park in 2012. Disney adapted it into a pretty, somewhat empty live action film in 2014. For decades it has remained a favorite among high school drama clubs though many of those clubs stage only the first act, when happily ever after seems possible.As Sondheim and Lapine knew, a happy ending depends on where you stop the story. Turn enough pages and death puts in an appearance, disillusion, too. Perhaps this seems like a grim lesson from a show with Cinderella (Phillipa Soo), Jack the Giant Killer (Cole Thompson) and Little Red Riding Hood (Julia Lester) among its central characters. But if you reread those original tales, they skew pretty dark. Of Sondheim’s work, only “Sweeney Todd” has a comparable body count. Yet somehow its tone is hopeful.The cast of “Into the Woods,” includes, from left: Kennedy Kanagawa (with Milky White), Cole Thompson, Brian d’Arcy James, Joshua Henry, Patina Miller, Phillipa Soo, David Patrick Kelly, Sara Bareilles and Lester.Sara Krulwich/The New York TimesA work of giddy playfulness and moral seriousness, “Into the Woods” forges a path from innocence into experience. It asks its characters (the surviving ones, anyway) to exchange the narcissism of childhood — the wishing, the wanting — for a more nuanced ethical framework that emphasizes interdependence. This is the message of the show’s heartbreaker ballad, “No One Is Alone,” which Sondheim articulated even more directly in a 1991 PBS interview. “We are all responsible for each other,” he said.The mood at the St. James on a recent evening did not, however, suggest deep moral inquiry. And judging by the hats worn indoors, the masks not worn at all and at least one surreptitious phone camera, everyone was handling responsibility a little differently. So what were the vibes? Pleasure, anticipation, celebration. When the lights came up, the crowd screamed and screamed and screamed. I expected panties — or given the source material, the occasional dancing slipper — to be thrown at the stage.DeBessonet’s staging, refined but little altered from the Encores! outing, uses only a wide set of stairs and a downstage strip in front of them. The set, designed by David Rockwell, with storybook lighting by Tyler Micoleau, sketches a forest in the simplest terms — descending birch trunks, a rising moon. Behind the actors, sit the musicians, conducted by the invaluable Rob Berman. If your eye should stray from the actors — a big if — you can watch them implement the chiming score, magic made visible.If the production’s style is minimal, it is never austere and on this mostly blank canvas, deBessonet, aided by Lorin Latarro’s playful choreography, paints in rich and plentiful tones. Kindness is a watchword of deBessonet’s work, as seen in her many Public Works productions. A recognition of shared humanity, too. Here it seems to extend everywhere, to actors and audience both. I have rarely seen a show in which the cast had this much fun. In the case of Gavin Creel, who went up on the second verse of “Any Moment” and covered — sort of — by kissing his co-star Sara Bareilles, arguably too much fun. Throughout there is a feeling of largess that only occasionally shades into indulgence. And honestly, some of that indulgence (as in “Agony,” sung to pieces by Creel and his co-prince, Joshua Henry) is a joy, too.Bareilles as the Baker’s Wife and James as the Baker. “Together they find some fine rhythms in the roles of a married couple only beginning to know each other,” our critic writes.Sara Krulwich/The New York TimesBareilles’s performance as the Baker’s Wife has only grown, beanstalk-like, since the Encores! production. Best known as a singer-songwriter and the composer of “Waitress,” she has more recently established herself as a comic actor on “Girls5Eva.” Here, her comedy has both broadened and deepened. While she and Neil Patrick Harris had a wild, nervy chemistry at Encores!, she is now partnered by the mellower Brian d’Arcy James. Together they find some fine rhythms in the roles of a married couple only beginning to know each other.Soo, a shimmering soprano who can make each emotion as legible as skywriting, gracefully replaces Denée Benton. (Benton replaced her in “Natasha, Pierre & the Great Comet of 1812” when it moved to Broadway; fair’s fair.) And Patina Miller, replacing Heather Headley, renders the Witch with a fierce, dangerous glamour, trading Headley’s initial restraint for more ardent shadings. On this recent evening, the puppeteer Kennedy Kanagawa was out sick, but his understudy, Cameron Johnson, was an able herdsman for Jack’s pal, Milky White. That cow still kills. And the children’s chorus is gone. Thank God.During the second act, I worried — though worry is too strong a word — that maybe this production had become too funny, too lightsome. The devastations of the second act didn’t flatten me the way they had two months ago. But really, who wants flattening right now? Instead this show values resilience, connection.At the end, once Soo had trilled the final ambivalent syllables, the audience leaped to its collective feet. The actors bowed and curtsied and smiled. The rest of us clapped and clapped.No one was alone.Into the WoodsThrough Aug. 21 at the St. James Theater, Manhattan; intothewoodsbway.com. Running time: 2 hours 45 minutes. More