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

GET /v1/json-validateValidate JSON string syntax

Format Utils lf-validation-utils

Tells you whether some text is valid JSON and points out any mistakes. Validates whether a string is valid JSON and returns any syntax errors.

Query Parameters

ParameterTypeRequiredDescription
jsonstringYesJSON string to validate

Response Schema

valid (boolean): Whether valid JSON
error (string): Error message if invalid

cURL Example

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

Python Example

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