Changeset 8541 in josm
- Timestamp:
- 2015-06-28T14:38:26+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Preferences.java
r8513 r8541 45 45 import javax.json.JsonObjectBuilder; 46 46 import javax.json.JsonReader; 47 import javax.json.JsonString; 47 48 import javax.json.JsonValue; 48 49 import javax.json.JsonWriter; … … 1361 1362 ret = new HashMap(object.size()); 1362 1363 for (Entry<String, JsonValue> e: object.entrySet()) { 1363 ret.put(e.getKey(), e.getValue().toString()); 1364 JsonValue value = e.getValue(); 1365 if (value instanceof JsonString) { 1366 // in some cases, when JsonValue.toString() is called, then additional quotation marks are left in value 1367 ret.put(e.getKey(), ((JsonString)value).getString()); 1368 } else { 1369 ret.put(e.getKey(), e.getValue().toString()); 1370 } 1364 1371 } 1365 1372 }
Note:
See TracChangeset
for help on using the changeset viewer.