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

# static decode

### `Static`decode

decode: (data: string | string\[]) => any = decode

Static decode function

#### Type Declaration

<ul>
  <li>
    <ul>
      <li>(data: string | string\[]): any</li>

      <li>
        Decodes JSON string(s) into objects.Throws on malformed input, like [decodeRegular](https://docs.kinetica.com/content/api/nodejs/functions/decodeRegular.md) and [decodeNoInfNan](https://docs.kinetica.com/content/api/nodejs/functions/decodeNoInfNan.md) and like the JavaScript API's `GPUdb.decode`. Returning the undecoded string instead would put a string where every response type declares an object, with nothing to signal it.

        #### Parameters

        <ul>
          <li>data: string | string\[]</li>
        </ul>

        #### Returns any
      </li>
    </ul>
  </li>
</ul>

<ul>
  <li>Defined in [src/GPUdb.ts:494](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L494)</li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.