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

# deserializeInputFromString

***

# Function: deserializeInputFromString()

```ts theme={null}
function deserializeInputFromString(value?: string): Record<string, unknown>;
```

Defined in: [src/utils/datasets.ts](https://github.com/rungalileo/galileo-js/blob/main/src/utils/datasets.ts)

Deserializes a JSON string into an object, with a fallback for non-JSON values.

## Parameters

### value?

`string`

(Optional) The string value to deserialize.

## Returns

`Record`\<`string`, `unknown`>

An object parsed from JSON, an object wrapping the raw value, or an empty object.
