Skip to content

JSON or ConceptDocument should implement Serialize #766

@dmitrii-ubskii

Description

@dmitrii-ubskii

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.

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions