FileReader in = null;
File file = new File(settings);
ArrayList<Error> errors = new ArrayList<Error>();
try{
in = new FileReader(file);
JsonStreamParser parser = new JsonStreamParser(in);
JsonObject obj = (JsonObject)parser.next();
Preferences preferences = getPreferences();
for (Map.Entry<String,JsonElement> entry : obj.entrySet()){
String name = entry.getKey();
String value = entry.getValue().getAsString();