pub fn to_json_response<T>(response: T) -> Result<Response<String>>where T: Serialize + Debug,
Returns a 200 response with a JSON body.