lift-json Support

In analogy to the spray-json Support spray-httpx also provides the LiftJsonSupport trait, which automatically provides implicit Marshaller and Unmarshaller instances for all types if an implicit net.liftweb.json.Formats instance is in scope.

When mixing in LiftJsonSupport you have to implement the abstract member:

implicit def liftJsonFormats: Formats

with your custom logic.

Note

Since spray-httpx only comes with an optional dependency on lift-json you still have to add it to your project yourself. Check the lift-json documentation for information on how to do this.