JSOnify

JSONify

Description

Transforms a JSON or ARRAY contained in a text field into an actual JSON or ARRAY to be written into files. Returns null if the value does not fit these types.

Category

Transformation

Restrictions

  • Can only be used with the Amazon S3 destination.

Supported Field Types

  • text

Output Field Type

  • text

Arguments

None

Pseudo-code (Python)

def func(val):
    """
        val: field value
    """
    if type(val) is dict or type(val) is list:
        return val
    else:
        return None

Use the JSONify Transformation

Apply the JSONify function in Kondado to convert JSON or array strings into structured data for Amazon S3 destinations.

1
Access the transformation pipeline

Navigate to your pipeline configuration in Kondado where you want to apply data transformation before sending data to your destination.

2
Select the text field to transform

Identify the source field containing JSON or array data stored as text that needs to be converted to actual structured format.

3
Apply the JSONify function

Add the JSONify transformation to your pipeline. This function parses text fields and returns proper JSON objects or arrays, or null if the value is invalid.

4
Configure Amazon S3 as destination

Ensure your pipeline outputs to Amazon S3, as JSONify is restricted to this destination only.

5
Validate the output

Run your pipeline and verify that the transformed fields are written as structured JSON or arrays rather than plain text strings.

Frequently asked questions

What does the JSONify function do?
JSONify transforms a JSON or array contained in a text field into an actual JSON or array object. If the value does not match these types, it returns null.
Which destination supports the JSONify transformation?
JSONify can only be used with the Amazon S3 destination. This is a platform restriction for this specific transformation function.
What input field types work with JSONify?
JSONify only supports text fields as input. The output field type is also text, but the content is converted to structured JSON or array format.
Does JSONify require any arguments?
No, JSONify does not require any arguments. You simply apply the function to a text field and it automatically attempts to parse the value into JSON or array format.
What happens if the text field contains invalid JSON?
If the value cannot be parsed as a valid JSON object or array, JSONify returns null rather than throwing an error or returning the original string.

Written by·Published 2024-12-20·Updated 2026-04-25