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