Skip to content

Implement serialize for JSON in axum#2

Open
flyingsilverfin wants to merge 1 commit into
masterfrom
cursor/implement-serialize-for-json-in-axum-a5f1
Open

Implement serialize for JSON in axum#2
flyingsilverfin wants to merge 1 commit into
masterfrom
cursor/implement-serialize-for-json-in-axum-a5f1

Conversation

@flyingsilverfin

Copy link
Copy Markdown
Owner

Usage and product changes

The JSON enum now implements serde::Serialize, allowing direct use with frameworks like axum for JSON responses. This removes the need for manual JSON construction or re-parsing.

Implementation

Implemented the serde::Serialize trait for the JSON enum, manually serializing each variant. Added serde as a dependency and included comprehensive unit tests for the new implementation.

Co-authored-by: joshua <joshua@typedb.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants