convertJsonToSettings function

Converts a JSON string to a settings object