Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
KJV

James 2:8

If ye fulfil the royal law according to the scripture, Thou shalt love thy neighbour as thyself, ye do well:

Read in other translations