Open amnaredo opened 2 years ago
Okay, I take this back,
@cask.postJson("/get-suggestions")
def suggest(search: String, prefixOnly: Option[Boolean]= None) = {
println("ummmm")
write(MyResponse(Seq("apple", "pear", "orange", "strawberries", "orangutan")))
}
Changing this to
@cask.post("/get-suggestions")
def suggest(request: cask.Request) = {
val test = request.text()
println(test)
write(MyResponse(Seq("apple", "pear", "orange", "strawberries", "orangutan")))
}
Actually fixes the problem. Which is weird as - it does not make any sense to me, how this could change the clientside behaviour... but hey ho Original Author: Quafadas
I have an experiment in which I'm attempting to use upickle to pass Json between client / server...
As far as I can tell, pickle is correctly "writing" the json. However, it fails to re-parse it coming back the other way, in scala JS.
Would this be expected? ID: 352 Original Author: Quafadas