In Jeremiah 36 there is a story about another king, King Jehoiakim. God gave the prophet Jeremiah a message for the king with the intent that the king would repent and change his ways, which is what King Josiah had done. However, when King Jehoiakim heard the message God had given to Jeremiah and that Jeremiah had written on a scroll, the king took a knife and cut the scroll up and threw it into the fire! This is quite a different approach and attitude towards what God had said than King Josiah's. The end of those stories is that God blessed King Josiah but King Jehoiakim was taken captive and carried away to Babylon.
In James 1:21 we are told to receive the word with meekness, which means we need to come to God's Word with a sense of humility. There will be times in the life of every Christian when they see something in God's Word that is contrary to what they see in their own life. This is when we have the choice to be humble, put God's Word first and make a change; this is what King Josiah did. The opposite reaction is to try to ignore what we have learned or try to justify why we need to continue living the way we live; this what King Jehoiakim did.
There is one thing we can be very sure of; God and His Word do not change. God has given us His Word to show us the best way to live and to fulfill His will for our lives, if a change needs to take place that change will be with us. Sometimes our actions, attitudes, or beliefs needs to change to line up with what God's Word has to say. If we are wise we will be like King Josiah and make the change because the end result will be for our benefit.