|
|
|
@ -96,8 +96,8 @@ public class JsonOrgJsonProvider extends AbstractJsonProvider {
|
|
|
|
|
public Object getMapValue(Object obj, String key) { |
|
|
|
|
try { |
|
|
|
|
JSONObject jsonObject = toJsonObject(obj); |
|
|
|
|
Object o = jsonObject.get(key); |
|
|
|
|
if (!jsonObject.has(key)) { |
|
|
|
|
Object o = jsonObject.opt(key); |
|
|
|
|
if (o == null) { |
|
|
|
|
return UNDEFINED; |
|
|
|
|
} else { |
|
|
|
|
return unwrap(o); |
|
|
|
|