< Back
Print

Create a JSON-String (create an array)

Create a JSON-String

Summary

The format “Create a JSON string” will create a JSON string from the input value with custom key – value configuration. This JSON then can be sent to a target system.

Example

Insert the attribute and select the function “SC::Complex – create a JSON-String” in the dropdown menu.
Screenshot selecting Create a JSON string format plugin

Click on the marked button for the extended settings, a new window opens.
Here you set your value that should be transferred to your system.

Screenshot of how to configure the JSON string format plugin

Value Description Example
Key-value mapping Here you define the core of your target keys for the json export. DAM references
Key Enter the json key for every value keys: fileName, fileType, DamFileID
Attribute Attribute for the json export data “SourceField” to use the input value from the previous configuration
Formatting Choose the plugin to form the output values Send value of a DAM reference
Force return of the references/values as array If this is activated the plugin will set for every value or reference a new array. (please see below)

Results example

Screenshot result export with JSON string format plugin

Create an Array

Summary

The “Create an array” format is used to create and transfer arrays of individual keys/values to the desired target system.

Example

Insert the attribute and select the function “create an array” in the dropdown menu.
Screenshot selecting Create an array format plugin
Click on the advanced settings button to open a new window.
Here, you can specify the keys/values that you want to convert to an array and transfer to your system. This works similar to the “Create a JSON string” format.

Screenshot of how to configure the Create an array format plugin

Results example

Screenshot result of the Create an array format plugin

Create JSON from create an array

When you are finished building your array, you are able to execute some formatting on the array. For example, creating an JSON string from said array.

Select “Execute JSON operation” on “Format of the result value”.
In this format plugin select ‘Encode’ to perform a JSON encoding operation on your array to obtain a JSON string.
Screenshot of how to create a JSON string from an array
Your result should look like this.
Screenshot result of the JSON Result created from an array

Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents