loadSettingsFromJson function

Load a settings object from a JSON file