pub fn reply_json<E>(t: impl Serialize) -> JSONResult<E>