refector the config method and resolved the json deserialization error