as.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
import net.liftweb.json.{ JsonParser, JValue }
import org.asynchttpclient.Response
object Json extends (Response => JValue) {
def apply(r: Response) =
(dispatch.as.String andThen JsonParser.parse)(r)
}