But just two minutes later Ryan Fraser worked some space to send in a cross and King nipped in ahead of James Tarkowski to slot home.
Burnley fans thought that was the goal to rubber-stamp Premier League safety, but King had the final say moments later.
Sam Vokes cancelled out a first half goal from former Claret Junior Stanislas, but Josh King snatched a victor seconds after the one-time Bournemouth striker netted his fourth in as many games.
Eddie Howe refused to label Bournemouth as an established Premier League club after a 2-1 win over Burnley saw them guarantee their highest points tally in the top-flight.
Junior Stanislas had given Bournemouth the lead with his first-half effort after 25 minutes, cooly finishing into the bottom corner against his former club following a lovely long diagonal ball from Lewis Cook.
Bournemouth comes to the match with a series of three games without defeats: Middlesbrough 4-0, Sunderland 1-0 and Stoke City 2-2.
SC orders six-month jail for Justice Karnan
Speculations are that the Calcutta High Court judge may have fled the country. "The seven judges looking at my case are corrupt". He has also said in his application that the SC should recall its order which sentenced him to six months in jail.
Burnley twice conceded when players got the wrong side of their men, and Dyche was disappointed with the goals they shipped on the coast.
Bournemouth are seeking their highest ever placing in the league and Burnley their highest since the mid-70s, long before the advent of the Premier League.
Yet just moments later, the tricky Ryan Fraser picked out King with a low cross to net a victor and his 16th goal of the season. Cherries boss Eddie Howe will hope to keep hold of the striker this summer as his services will certainly attract a number of clubs in the Premier League. With the way that we play, and what we ask from our players, especially our front players, for him to have scored those late goals, that's one big thing he has improved from when he first joined - his fitness levels.
Boruc was not tested until 11 minutes into the second half, however, when Arfield sent a curling strike just wide of the right-hand upright.
"We got a fine goal ourselves, and Vokesey was excellent again - the two centre forwards for each side, Vokesy and Josh King were probably the best players on the pitch".