tools/format/json formatter
// format

json formatter

prettify, minify, validate, tree view

— paste json to start // client-only
// output appears here
curl -sX POST 'https://api.whittly.dev/v1/json/format' \
  -H 'Authorization: Bearer $WHITTLY_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"input":"[1,2,3]","indent":2}'
const res = await fetch('https://api.whittly.dev/v1/json/format', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer ' + apiKey,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ input: "[1,2,3]", indent: 2 }),
});
const data = await res.json();
const { data } = await axios.post(
  'https://api.whittly.dev/v1/json/format',
  { input: "[1,2,3]", indent: 2 },
  { headers: { Authorization: 'Bearer ' + apiKey } }
);
// probulk formattingpro·files over 100 MBproupgrade →
// history
Pro Cloud Sync — upgrade
no operations yet