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 -

c# - How do I get the Nth largest element from a list with duplicates, using LINQ? -

jsp - "Sending a redirect is forbidden after the response has been committed" in sendRedirect -