Docs/Format Utils/GET /v1/json-minify

GET /v1/json-minifyMinify JSON via GET

Format Utils lf-format-utils

Squashes JSON text down by removing all the extra spaces and line breaks. Compacts a JSON string by removing all whitespace.

Query Parameters

ParameterTypeRequiredDescription
jsonstringYesJSON string to minify

Response Schema

success (boolean): Operation success
minified (string): Compact JSON output

cURL Example

curl 'https://lf-format-utils.laminarforge.dev/v1/json-minify?json=%7B%22a%22:%201%7D' -H 'Authorization: Bearer lf_YourApiKey'

Python Example

import requests
url = 'https://lf-format-utils.laminarforge.dev/v1/json-minify'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
params = {'json': '{"a": 1}'}
response = requests.get(url, headers=headers, params=params)
print(response.json())