Simplified config.d and improved deserilizer from json