From bfe8a1281e7799ae72a8f03721c5b2831d8b266a Mon Sep 17 00:00:00 2001 From: Derek Chen-Beker Date: Sat, 10 May 2008 01:55:02 +0000 Subject: Fixed #873 by adding in a missing case to resol... Fixed #873 by adding in a missing case to resolveType. --- src/library/scala/util/parsing/json/JSON.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/library/scala/util/parsing/json/JSON.scala b/src/library/scala/util/parsing/json/JSON.scala index 96d541b0f2..07f48a6061 100644 --- a/src/library/scala/util/parsing/json/JSON.scala +++ b/src/library/scala/util/parsing/json/JSON.scala @@ -50,13 +50,16 @@ object JSON extends Parser { * A utility method to resolve a parsed JSON list into objects or * arrays. See the parse method for details. */ - def resolveType(input: List[Any]): Any = { + def resolveType(input: List[_]): Any = { var objMap = Map[String, Any]() if (input.forall { case (key: String, value: List[_]) => objMap += (key -> resolveType(value)) true + case (key : String, value : Any) => + objMap += (key -> value) + true case _ => false }) objMap else -- cgit v1.2.3