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

# validateForeignCallJSON

> v0.20.5

> **validateForeignCallJSON**(`foreignCall`): [`Either`](../../types/type-aliases/Either)\<[`RulesError`](../../types/type-aliases/RulesError)\[], [`ForeignCallJSON`](../interfaces/ForeignCallJSON)>

Defined in: [src/modules/validation.ts:400](https://github.com/Forte-Service-Company-Ltd/forte-rules-engine-sdk/blob/40cc8388cecd8ee445b00b9df2b681cff8552ece/src/modules/validation.ts#L400)

Parses a JSON string and returns Either a ForeignCallJSON object or an error.

## Parameters

| Parameter     | Type     | Description          |
| ------------- | -------- | -------------------- |
| `foreignCall` | `string` | string to be parsed. |

## Returns

[`Either`](../../types/type-aliases/Either)\<[`RulesError`](../../types/type-aliases/RulesError)\[], [`ForeignCallJSON`](../interfaces/ForeignCallJSON)>

Either the parsed ForeignCallJSON object or an error.
