{"id":19654232,"url":"https://github.com/aimenux/jsonstringenumconverterdemo","last_synced_at":"2026-06-09T04:33:38.513Z","repository":{"id":116560364,"uuid":"476899566","full_name":"aimenux/JsonStringEnumConverterDemo","owner":"aimenux","description":"Using various ways to support serialization/deserialization and model binding of enums in web api","archived":false,"fork":false,"pushed_at":"2025-06-03T21:30:33.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-22T04:03:46.876Z","etag":null,"topics":["enum-member","enums","from-query","net80","system-text-json","webapi"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aimenux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-04-01T23:52:46.000Z","updated_at":"2025-06-03T21:30:35.000Z","dependencies_parsed_at":"2025-02-27T01:46:52.938Z","dependency_job_id":"691ed91f-63d8-44d4-a5be-e05053fcaa0c","html_url":"https://github.com/aimenux/JsonStringEnumConverterDemo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aimenux/JsonStringEnumConverterDemo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FJsonStringEnumConverterDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FJsonStringEnumConverterDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FJsonStringEnumConverterDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FJsonStringEnumConverterDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aimenux","download_url":"https://codeload.github.com/aimenux/JsonStringEnumConverterDemo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimenux%2FJsonStringEnumConverterDemo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34092260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["enum-member","enums","from-query","net80","system-text-json","webapi"],"created_at":"2024-11-11T15:16:41.544Z","updated_at":"2026-06-09T04:33:38.497Z","avatar_url":"https://github.com/aimenux.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![.NET](https://github.com/aimenux/JsonStringEnumConverterDemo/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/aimenux/JsonStringEnumConverterDemo/actions/workflows/ci.yml)\n\n# JsonStringEnumConverterDemo\n```\nUsing various ways to support serialization/deserialization and model binding of enums in web api\n```\n\nIn this demo, i m using various ways in order to support serialization/deserialization and model binding of enums (with or without [EnumMemberAttribute](https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.enummemberattribute)) in web api using [System.Text.Json](https://docs.microsoft.com/en-us/dotnet/api/system.text.json) :\n\u003e\n:one: `Example01` : Use locally `JsonStringEnumConverter` to support serialization/deserialization and model binding of enums (without `EnumMemberAttribute`)\n\u003e\n:two: `Example02` : Use globally `JsonStringEnumConverter` to support serialization/deserialization and model binding of enums (without `EnumMemberAttribute`)\n\u003e\n:three: `Example03` : Use locally custom json converter to support serialization/deserialization and custom type converter to support model binding of enums (with `EnumMemberAttribute`)\n\u003e\n:four: `Example04` : Use locally custom json converter (another implementation) to support serialization/deserialization and custom type converter to support model binding of enums (with `EnumMemberAttribute`)\n\u003e\n:five: `Example05` : Use globally custom json converter to support serialization/deserialization and custom type converter to support model binding of enums (with `EnumMemberAttribute`)\n\n**`Tools`** : net 8.0, xunit, fluent-assertions","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimenux%2Fjsonstringenumconverterdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimenux%2Fjsonstringenumconverterdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimenux%2Fjsonstringenumconverterdemo/lists"}