JSON API Payload Example

A small JSON payload example that works with strict parsers. Useful for testing API clients and cURL commands.

JSON payload
{
  "name": "demo",
  "enabled": true,
  "tags": ["api", "test"],
  "metadata": {
    "source": "howprog"
  }
}

How to use this example

  1. Validate the payload before sending it.
  2. Pretty format it for review.
  3. Minify only after the payload is valid.

Notes

  • JSON does not allow comments or trailing commas.
  • Use double quotes for strings and property names.

Related tools and fixes

Last updated: May 18, 2026