Commit 0683782a authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fix array on json file

parent 9d40cb55
......@@ -54,7 +54,7 @@ class Config(var map: Map[String, Any]) extends Logging {
if (json.isObject) return jsonToMap(json)
else if (json.isArray) {
var list: List[Any] = List()
for (value <- json.objectValues.get) list ::= jsonToAny(value)
for (value <- json.array.get) list ::= jsonToAny(value)
return list
} else if (json.isBool) return json.bool.get
else if (json.isString) return json.string.get.toString
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment