< Back
Print

Create a JSON-String (create an array)

Summary

The plugin SC::Complex – create a JSON-String, will send a JSON string to the target system.

Example

Insert the attribute and select the function “SC::Complex – create a JSON-String” in the dropdown menu.

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.

Value Description Example
JSON-objekt Here you define the core of your target keys for the json export. MAM references
Objekt-Key Enter the json key for every value keys: fileName, fileType, MamId
Attributes Attribute for the json export data Alternative Images
Formatting Choose the plugin to form the output values SC::Reverence – send specific value of a MAM 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)
Format result value using this plugin This plugin will be executed if it is required by a condition.

Results on the example from the JSON Connector.

Create an Array:

Summary

The “create an array” plugin 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.

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.

Results on the example from create an array.

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.


Click on the advanced settings button to open a new window.
Select ‘Encode’ to perform a JSON encoding operation on your array to obtain a JSON string.

Your result should look like this.

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