---
title: "JSONDECODE"
description: "La funzione SQL JSONDECODE restituisce il testo codificato in JSON come testo normale, con la rappresentazione JSON dei caratteri speciali sostituita dai loro originali\u2026"
language: it
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/it/docs/invantive-universalsql/grammar/sql-functions/jsondecode
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/jsondecode
updated: 2026-12-04T13:50:45Z
license: https://documentation.invantive.eu/it/
---

## Sintassi
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> JSONDECODE[JSONDECODE]:::quoted
    JSONDECODE --> End((END))
```

## Scopo
La funzione SQL `JSONDECODE` restituisce il testo codificato in JSON come testo normale, sostituendo i caratteri speciali della rappresentazione JSON con il loro significato originale.

Vedi anche [[JSONELEMENT]] e [[JSONENCODE]].

Parametri:
- Input (`varchar2`): l'input che verrà decodificato da JSON in testo.

Restituisce: un testo che corrisponde all'input decodificato da JSON come `varchar2`.

## Esempi
L'esempio seguente recupera la rappresentazione testuale di una rappresentazione JSON:
```sql
select jsondecode('"Special characters such as backslash (\\) and quote (\")."')

----------------
Special characters such as backslash (\) and quote (").
```
L'esempio seguente recupera la rappresentazione testuale di una rappresentazione JSON di un numero:
```sql
select jsondecode('5.2')

----------------
5.2
```
L'esempio seguente genera un errore poiché il testo non è una rappresentazione JSON:
```sql
select jsondecode('Invalid JSON')

itgenclr078: Error parsing Infinity value. Path '', line 1, position 2.
```

