What is the easiest way to return Json via Rocket in Rust?
#[post("/route", data = "<data>")]
fn route(someVariable: String) -> String {
// How can I return a json response here? {"a": "{someVariable}")
}
I tried: content::Json() but it seemed too static for me.