Permalink
Browse files

Removed funky (in a bad way) JArray extract semantics

  • Loading branch information...
1 parent ca99d92 commit a59cc23bc5ff72be0c57451788de5364f8974104 @dchenbecker dchenbecker committed Nov 1, 2012
Showing with 1 addition and 7 deletions.
  1. +1 −1 .gitignore
  2. +0 −6 json/src/main/scala/blueeyes/json/JValue.scala
View
@@ -16,4 +16,4 @@ GTAGS
tags
nbproject
build.xml
-
+TAGS
@@ -69,12 +69,6 @@ sealed trait JValue extends Merge.Mergeable with Diff.Diffable with Product with
*/
def \ (nameToFind: String): JValue = self match {
case j @ JObject(fields) => j.get(nameToFind)
- case j @ JArray(elements) =>
- elements.map(_ \ nameToFind) match {
- case Nil => JUndefined
- case x :: Nil => x
- case elements @ x :: xs => JArray(elements)
- }
case _ => JUndefined
}

0 comments on commit a59cc23

Please sign in to comment.