From cf2a4f306be07c20a487adb71feced9b1d3ada1f Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 6 Mar 2016 09:17:42 +0000 Subject: [PATCH] Avoid breaking json-io updates --- .classpath | 2 +- ivy.xml | 2 +- source/net/filebot/util/JsonUtilities.java | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.classpath b/.classpath index 62203667..05b225ac 100644 --- a/.classpath +++ b/.classpath @@ -28,7 +28,7 @@ - + diff --git a/ivy.xml b/ivy.xml index cfbf69d4..eb5737d5 100644 --- a/ivy.xml +++ b/ivy.xml @@ -11,7 +11,7 @@ - + diff --git a/source/net/filebot/util/JsonUtilities.java b/source/net/filebot/util/JsonUtilities.java index ee2d3ff8..f4c9c3a3 100644 --- a/source/net/filebot/util/JsonUtilities.java +++ b/source/net/filebot/util/JsonUtilities.java @@ -1,5 +1,7 @@ package net.filebot.util; +import static java.util.Collections.*; + import java.util.Map; import com.cedarsoftware.util.io.JsonReader; @@ -7,7 +9,7 @@ import com.cedarsoftware.util.io.JsonReader; public class JsonUtilities { public static Map readJson(String json) { - return JsonReader.jsonToMaps(json); + return (Map) JsonReader.jsonToJava(json, singletonMap(JsonReader.USE_MAPS, true)); } public static Object[] getArray(Object node, String key) {