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.9.0-1 Show documentation
Show all versions of dispatch-lift-json_2.9.0-1 Show documentation
Dispatch module providing lift json support
The newest version!
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 = ()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy