All Downloads are FREE. Search and download functionalities are using the official Maven repository.

as.stream.json.scala Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show 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 - 2024 Weber Informatics LLC | Privacy Policy