I got confused on how to combine the json library in dispatching and raise to parse my json answer.
I am apparently a newbie to scala.
I wrote this code:
val status = { val httpPackage = http(Status(screenName).timeline) val json1 = httpPackage json1 }
Now I am fixated on how to parse twitter json answer
I tried using JsonParser:
val status1 = JsonParser.parse(status)
but got this error:
<console>:38: error: overloaded method value parse with alternatives: (s: java.io.Reader)net.liftweb.json.JsonAST.JValue<and> (s: String)net.liftweb.json.JsonAST.JValue cannot be applied to (http.HttpPackage[List[dispatch.json.JsObject]]) val status1 = JsonParser.parse(status1)
I am not sure and cannot figure out what to do next in order to iterate over the data, extract it and display it on my web page.
user365916
source share