Open
Description
Problem to Solve
axum
, e.g., allows any struct that implements Serialize
to be a part of its own Json
structure which can handle serialization and content headers in the server response. With Serialize
we would be able to pipe the fetch
output directly into the response.
Current Workaround
Either constructing the JSON manually, or reparsing the JSON as serde_json::RawValue
.
Proposed Solution
Implement Serialize for JSON.