Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
[Fork] http://stackoverflow.com/questions/40941712/how-to-get-all-the-enums-as-json-in-asp-net-api by Brian Rogers
{
  "Code": 200,
  "Message": "OK",
  "Data": {
    "Size": {
      "Tiny": 0,
      "Small": 1,
      "Normal": 2,
      "Big": 3,
      "Huge": 4
    },
    "Color": {
      "Black": 0,
      "Cyan": 1,
      "Magenta": 2,
      "Yellow": 3
    },
    "Rating": {
      "WorstEver": 0,
      "Terrible": 1,
      "Bad": 2,
      "SubPar": 3,
      "Meh": 4,
      "Passable": 5,
      "Good": 6,
      "Great": 7,
      "Stellar": 8
    }
  }
}
Cached Result
Last Run: 1:36:20 pm
Compile: 0.205s
Execute: 0.19s
Memory: 1.08Mb
CPU: 0.234s