> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Is valid JSON

> Checks if the value is valid JSON.

export const FormField = ({property, label, required = false, diType, uiPatterns, children}) => {
  const patterns = Array.isArray(uiPatterns) ? uiPatterns : uiPatterns ? [uiPatterns] : [];
  return <div style={{
    margin: '1.5rem 0'
  }}>
      <div style={{
    display: 'flex',
    alignItems: 'baseline',
    flexWrap: 'wrap',
    gap: '0.5rem',
    marginBottom: '0.25rem'
  }}>
        <strong>{label}</strong>
        <span style={{
    fontSize: '0.7rem',
    fontWeight: 600,
    textTransform: 'uppercase',
    letterSpacing: '0.04em',
    color: required ? '#6241f5' : '#6b7280'
  }}>
          {required ? 'Required' : 'Optional'}
        </span>
      </div>

      <div>{children}</div>

      {diType || patterns.length > 0 ? <p style={{
    fontSize: '0.85rem',
    color: '#6b7280',
    marginBottom: 0
  }}>
          {diType ? <>
              See the <a href={`/references/${diType}`}>{diType}</a> reference.{' '}
            </> : null}
          {patterns.length > 0 ? <>
              Accepts a <a href={`/documentation/placeholders-and-patterns/patterns#${patterns[0]}`}>pattern</a>.
            </> : null}
        </p> : null}
    </div>;
};

Checks whether the incoming value is valid JSON text. A value passes when it is a piece of text that can be read as JSON, with correctly placed quotes, brackets, and commas. Use this when a field is expected to carry a JSON payload, for example a block of data received from another system, and you want to confirm it can be parsed before you try to read or transform it. Records that hold malformed or non-JSON text can then be routed somewhere else instead of causing errors further along.

This documentation describes: [Schema](/schemas/condition/format-json)

## Fields

This condition has no fields to configure. It checks the value it receives and answers yes or no.

## Sample data

The condition was run against a text field holding a JSON payload, with no extra settings.

| Incoming value         | Result         |
| ---------------------- | -------------- |
| `{"sku":"A1","qty":3}` | Matches        |
| `{sku: A1, qty: 3}`    | Does not match |

```json Configuration theme={null}
{
  "prototype": "format-json",
  "parameters": {}
}
```
