Added functionality for loading settings from json.