---
title: "JSONDECODE"
description: "La funci\u00F3n SQL JSONDECODE devuelve el texto codificado en JSON como texto normal, con la representaci\u00F3n JSON de los caracteres especiales sustituida por sus caracteres originales\u2026"
language: es
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/es/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:41Z
license: https://documentation.invantive.eu/es/
---

## Sintaxis
```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))
```

## Propósito
La función SQL `JSONDECODE` devuelve el texto codificado en JSON como texto normal, sustituyendo la representación JSON de los caracteres especiales por su significado original.

Véanse también [[JSONELEMENT]] y [[JSONENCODE]].

Parámetros:
- Entrada (`varchar2`): la entrada que se decodificará de JSON a texto.

Devuelve: un texto que corresponde a la entrada descodificada desde JSON como `varchar2`.

## Ejemplos
El siguiente ejemplo recupera la representación textual de una representación JSON:
```sql
select jsondecode('"Special characters such as backslash (\\) and quote (\")."')

----------------
Special characters such as backslash (\) and quote (").
```
El siguiente ejemplo recupera la representación textual de una representación JSON de un número:
```sql
select jsondecode('5.2')

----------------
5.2
```
El siguiente ejemplo genera un error, ya que el texto no es una representación JSON:
```sql
select jsondecode('Invalid JSON')

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

