Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

JSON_PARSE function

Focus mode
JSON_PARSE function - Amazon Redshift

The JSON_PARSE function parses data in JSON format and converts it into the SUPER representation.

To ingest into SUPER data type using the INSERT or UPDATE command, use the JSON_PARSE function. When you use JSON_PARSE() to parse JSON strings into SUPER values, certain restrictions apply. For additional information, see Parsing options for SUPER.

Syntax

JSON_PARSE( {json_string | binary_value} )

Arguments

json_string

An expression that returns serialized JSON as a VARBYTE or VARCHAR type.

binary_value

A VARBYTE type binary value.

Return type

SUPER

Examples

To convert the JSON array [10001,10002,"abc"] into the SUPER data type, use the following example.

SELECT JSON_PARSE('[10001,10002,"abc"]'); +---------------------+ | json_parse | +---------------------+ | [10001,10002,"abc"] | +---------------------+

To make sure that the function converted the JSON array into the SUPER data type, use the following example. For more information, see JSON_TYPEOF function

SELECT JSON_TYPEOF(JSON_PARSE('[10001,10002,"abc"]')); +-------------+ | json_typeof | +-------------+ | array | +-------------+

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.