0

I am using the following design for JSON response

{
    "metadata": [
        "count": <count of entities>
    ],
    "debug": [
        <debug messages>
    ],
    "results": [
        <List of results>
    ],
    "errors": [
        <List of errors>
    ]
}

Is there any better design or blueprint for returning the response JSON

Guillaume S
  • 1,462
  • 2
  • 19
  • 31
r123
  • 578
  • 8
  • 26

0 Answers0