> ## 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.

# validateCallingFunctionJSON

> v0.20.5

> **validateCallingFunctionJSON**(`callingFunction`): [`Either`](../../types/type-aliases/Either)\<[`RulesError`](../../types/type-aliases/RulesError)\[], [`CallingFunctionJSON`](../interfaces/CallingFunctionJSON)>

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

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

## Parameters

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

## Returns

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

Either the parsed CallingFunctionJSON object or an error.
