How do I return a json response using scala lift? -


how return list json response?

so querying /list?id=123 returns

["a", "b", "c"] 

the net.liftweb.json package has looking for. following snippet should json object can returned , converted response:

implicit val formats = defaultformats val list = //create list extraction.decompose(list) 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -