as.stream.json.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dispatch-lift-json_2.12 Show documentation
Show all versions of dispatch-lift-json_2.12 Show documentation
Dispatch module providing lift json support
package dispatch.as.lift.stream
import dispatch.stream.StringsByLine
import net.liftweb.json.{ JsonParser, JValue }
object Json {
def apply[T](f: JValue => T) =
new StringsByLine[Unit] {
def onStringBy(string: String) = {
f(JsonParser.parse(string))
()
}
def onCompleted = ()
}
}