Function example_webserver_rs::handlers::get_json

source ยท
pub async fn get_json(__arg0: State<Arc<Mutex<AppState>>>) -> Json<Value>
Expand description

Return arbitrary json object. serde_json::Value can be a valid json object of any kind. Wrapping output around axum::Json as it implements IntoResponse trait.