Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Identity decoder

  • Loading branch information...
commit b7233bec37c1ff182b3a97eea4c4604edc5c186a 1 parent 09df07a
markhibberd authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/main/scala/com/ephox/argonaut/DecodeJson.scala
View
3  src/main/scala/com/ephox/argonaut/DecodeJson.scala
@@ -96,6 +96,9 @@ trait DecodeJsons {
implicit def IdDecodeJson: DecodeJson[HCursor] =
decodeArr(q => q)
+ implicit def JsonDecodeJson: DecodeJson[Json] =
+ DecodeJson(j => DecodeResult(j.focus))
+
implicit def ListDecodeJson[A](implicit e: DecodeJson[A]): DecodeJson[List[A]] =
DecodeJson(a => {
val d = a.downArray
Please sign in to comment.
Something went wrong with that request. Please try again.