pretty-json

It makes your API response beautiful

What is it?

pretty-json is a microservice for beautify any API response payload.

Usage

as URL

You Just pass the `url` to the service as query parameter:

pretty-json.now.sh?url=https://microlink-stats-api.now.sh

as data

Additionally, you can provide the JSON payload as `data` query parameter:

pretty-json.now.sh?data=%7B"foo"%3A"bar"%2C"hello"%3A"world"%2C"ping"%3A12234%7D

It needs to be encoded with encodeURIComponent) .

style

Customize the output passing custom`style`:

pretty-json.now.sh?url=https://microlink-stats-api.now.sh&theme=atom-dark&style=font-size:36px

themeable

You can also customize the `theme`:

pretty-json.now.sh?url=https://microlink-stats-api.now.sh&theme=atom-dark

The supported themes are:

  • a11y-dark
  • atom-dark
  • base16-ateliersulphurpool.light
  • cb
  • darcula
  • dracula
  • duotone-dark
  • duotone-earth
  • duotone-forest
  • duotone-light
  • duotone-sea
  • duotone-space
  • ghcolors
  • hopscotch
  • material-dark
  • material-light
  • material-oceanic
  • pojoaque
  • shades-of-purple
  • synthwave84
  • vs
  • vsc-dark-plus
  • xonokai