Get Collection From JSON

Transforms JSON to Collection. Can be used to utilize some operators to work with collections, but keep in mind that there are a bunch of operators to work with JSON in Array section.

inputs:

json – input JSON to transform into the collection. Link it with a response from API Request, from Sugar field, or specify directly in the flowchart.

  • Required: yes

outputs:

collection – converted collection from JSON. Usually followed by For Each Element to process each element of the collection. Also can be followed by Get Collection Elements Number to get know how many elements are there in JSON.

Please note the collections as a key can have only numbers, so if JSON element have key like ‘first_name’, this key will be lost after convert. Also if JSON contains objects or arrays, during transformation the whole object or array will be transformed into a single element of the collection:

Click to rate this post!
[Total: 0 Average: 0]

Leave a Reply

Your email address will not be published. Required fields are marked *