I think the key to understanding James perspective in his book of James is found in Acts 21
17 And when we had come to Jerusalem, the brethren received us gladly. 18 On the following
day Paul went in with us to James, and all the elders were present. 19 When he had greeted them, he told in detail those things which God had done among the Gentiles through his ministry. 20 And when they heard
it, they glorified the Lord. And they said to him,
“You see, brother, how many myriads of Jews there are who have believed, and they are all zealous for the law; 21 but they have been informed about you that you teach all the Jews who are among the Gentiles to forsake Moses, saying that they ought not to circumcise their children nor to walk according to the customs. 22 [
d]What then? The assembly must certainly meet, for they will hear that you have come. 23 Therefore do what we tell you: We have four men who have taken a vow. 24 Take them and be purified with them, and pay their expenses so that they may shave
their heads, and that all may know that those things of which they were informed concerning you are nothing,
but that you yourself also walk orderly and keep the law. 25
But concerning the Gentiles who believe, we have written and decided [e]that they should observe no such thing, except that they should keep themselves from
things offered to idols, from blood, from things strangled, and from [
f]sexual immorality.”
Thus, the book of James was written to the 12 tribes of Israel. From the above perspective, its quite clear that James's standard for the Jews is different from the Gentiles. He is perfectly fine with Gentiles being saved without works, but for the Jews, he has a different standard, they must still follow the Law of Moses.
Once you understand this perspective, it can be quite amusing how we, as Gentiles, seek to understand church doctrine, thru the book of James. Paul is the apostle we should understand church doctrine from. We can learn from James of course, but it is not written to us.