fn ok_json(jval: serde_json::Value) -> Result<HttpResponse> {
    Ok(HttpResponse::build(StatusCode::OK)
        .content_type("application/json")
        .body(jval.to_string()))
}
// helper function, success + json response
helper function, success + json response
helper function success + json response
fn ok_json(jval: serde_json::Value) -> Result<HttpResponse> {
    Ok(HttpResponse::build(StatusCode::OK)
        .content_type("application/json")
        .body(jval.to_string()))
}
fn ok_json ( jval : serde_json :: Value ) -> Result < HttpResponse > { Ok ( HttpResponse :: build ( StatusCode :: OK ) . content_type ( " " ) . body ( jval . to_string ( ) ) ) }
helper function, success + json response
helper function success + json response
jval
serde_json::Value
jval
serde_json::Value