Issue 365 Enhance JSON support in Lift to use the new Lift JSON library
Updated 1 year, 10 months ago
| David Pollak | Reviewers | ||
| dpp, marius, charles, joni, atsuhiko, jorge, naftoli, kris, indrajit, alexb, dlouwers, mstarzyk, rmellgren, jhoffman, probinett, jmadsen, mhartmann, jstrachan, jgoday | |||
| None | LiftWeb-archive | ||
https://liftweb.assembla.com/spaces/liftweb/tickets/365-add-new-json-handler-based-on-lift-json dpp_issue_365 Enhanced Lift to use the Lift JSON library to parse JSON calls from the client. Enhanced CometActors to make this even easier.
class Buttin extends CometActor {
override def autoIncludeJsonCode: Boolean = true
override def receiveJson = {
case x =>
Alert("Yep "+x.toString)
}
def render =
<div>
<button onclick={jsonSend("Hello", JsRaw("Dude".encJs))}>Click</button>
</div>
}
