1 2 3 4 5 6 7 8 9
use axum::Json; use serde::Serialize; pub fn json<T>(body: T) -> Json<T> where T: Serialize, { Json(body) }