1. 程式人生 > >fastjson JsonObject轉成map

fastjson JsonObject轉成map

list entry eof mis align equals als fast try

for (Entry<String, Object> entry : permissions.entrySet()) {

String key = entry.getKey();

Object value = entry.getValue();

if (value instanceof String && StringUtils.equals("1", value.toString())) {

list.add(key);

}

}

fastjson JsonObject轉成map