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_TO_STRUCTS - AWS Glue DataBrew

JSON_TO_STRUCTS

Converts a JSON string to statically typed structs. During conversion, it detects the schema of every JSON object and merges them in order to get the most generic schema to represent the entire JSON string. The “unnestLevel” parameter specifies how many levels of JSON objects to convert to structs.

Parameters
  • sourceColumns – A list of source columns.

  • regexColumnSelector – A regular expression to select the columns.

  • removeSourceColumn – A Boolean value. If true then remove the source column; otherwise, keep it.

  • unnestLevel – The number of levels to unnest.

  • conditionExpressions – Condition expressions.

Example

{ "RecipeAction": { "Operation": "JSON_TO_STRUCTS", "Parameters": { "sourceColumns": "[\"address\"]", "removeSourceColumn": "true", "unnestLevel": "2" } } }
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.