ProcessMIX Guide
  • Platform Overview
    • Introduction
    • Platform Purpose
    • Main Concepts
      • Organization Structure
      • Visual Language
      • Project Development Environment (IDE)
      • Deployment and Integration
      • Administration and Troubleshooting
    • First Steps
    • Change Log
      • 5.0.0
      • 5.0.5
      • 5.0.5.1
      • 5.0.5.2
      • 5.0.5.3
      • 5.0.5.4
  • Language Reference Guide
    • Overview
    • Data Structures and Types
      • Core Types (pdk.core)
      • Dictionary (pdk.asset.dictionary)
      • Scorecard (pdk.asset.scorecard)
      • Blockchain (pdk.blockchain)
      • Exceptions (pdk.ex)
      • Input/Output (pdk.io)
      • JSON Web Token (pdk.jwt)
      • Networking (pdk.net)
      • HTTP (pdk.net.http)
      • SOAP/Web Services (pdk.net.soap)
      • XML/DOM (pdk.net.xml)
      • S3 (pdk.s3)
      • SQL (pdk.sql)
      • Postgres (pdk.db.postgre)
      • Util (pdk.util)
      • Default Data Structure Field Values
    • Flows
      • Variables
        • Local Flow Variables
        • Node Variables
      • Flow Node Types
        • Core Nodes
          • In
          • Out
          • Assign
          • If
          • Switch
          • Iterator
          • Function Call
          • Subflow
          • Raise Exception
          • Exception Handler
          • Validator
        • Connector Nodes
          • Database Begin Transaction
          • Database Commit Transaction
          • Database Rollback Transaction
          • Database Query Executor
          • EVM Blockchain Functions
          • EVM Blockchain Smart Contract Functions
          • REST Service Executor
          • SOAP Service Executor
          • S3 Connector
          • SMB Connector
      • Expressions
      • Built-In Functions
        • Expression functions
          • pdk.util.Any
          • pdk.util.Array
          • pdk.util.Blockchain
          • pdk.util.Cast
          • pdk.util.Codec
          • pdk.util.Crypto
          • pdk.util.Date
          • pdk.util.File
          • pdk.util.Json
          • pdk.util.JWT
          • pdk.util.Map
          • pdk.util.Math
          • pdk.util.String
          • pdk.util.Util
        • Node functions
          • pdk.flow.Any
          • pdk.flow.Array
          • pdk.flow.File
          • pdk.flow.JsonArray
          • pdk.flow.JsonObject
          • pdk.flow.HttpRequest
          • pdk.flow.HttpResponse
          • pdk.flow.Logger
          • pdk.flow.Map
          • pdk.flow.Xml
            • pdk.flow.xml.XmlAttr
            • pdk.flow.xml.XmlElement
            • pdk.flow.xml.XmlNode
            • pdk.flow.xml.XmlDocument
            • pdk.flow.xml.XmlDocumentType
            • pdk.flow.xml.XmlDOMConfiguration
            • pdk.flow.xml.XmlDOMImplementation
            • pdk.flow.xml.XmlProcessingInstruction
            • pdk.flow.xml.XmlTypeInfo
            • pdk.flow.xml.XmlCharacterData
            • pdk.flow.xml.XmlText
            • pdk.flow.xml.XmlNamedNodeMap
          • pdk.node.BlockchainEth
          • pdk.node.S3
          • pdk.node.Smb
      • Exceptions
        • Checked Exceptions
        • Runtime Exceptions
    • Assets
      • Dictionary
      • Decision Table
      • Scorecard
      • PMML
    • Connectors
      • DB Connector
        • Prepared Query
        • Dynamic Query
        • Query input parameters
        • Stored Procedure
      • REST Connector
      • SOAP Connector
      • S3 Connector
      • SMB Connector
      • EVM Blockchain Connector
    • Global Variables
    • Appendices
      • Overview of Database Transactions
      • Reserved Words
  • Project Development Environment (IDE)
    • Project Explorer Panel
    • Flow Builder
    • Flow Node Editor
    • Data Structure Builder
    • Connector Builders
      • REST Connector Builder
      • SOAP Connector Builder
      • DB (Database) Connector Builder
      • EVM Blockchain Connectors Builder
      • S3 Connector Builder
    • Asset Builders
      • Dictionary Builder
      • Decision Table Builder
      • Scorecard Builder
      • PMML Asset Builder
    • Global Variables Panel
    • Expression Editor
    • Project Deployment and Execution
    • Cron Expression Generator
    • Test Helper
    • Debugging the Project
    • DB transactions
    • Team Collaboration Tools
      • Version Control
      • Conflict Resolver
    • Selectors
    • Error Panel
    • Local History
  • Home and Administration Guide
    • Organization and Subscription
    • Organization Team
    • Repositories and Projects
    • Environments
    • Deployments
    • Database Provisioning
    • Roles and Permissions
  • Logs and Troubleshooting
    • Request/Call Logs
    • Deployment Logs
    • Application Logs
  • Appendix: Example Project
    • Risk Mitigation Solution
Powered by GitBook
On this page
  • All functions
  • addBoolean
  • addFloat
  • addInteger
  • addString
  • addJsonObject
  • addJsonArray
  • setBoolean
  • setFloat
  • setInteger
  • setString
  • setJsonObject
  • setJsonArray
  • removeItem
  • removeAll
  • mappingToVariable
  1. Language Reference Guide
  2. Flows
  3. Built-In Functions
  4. Node functions

pdk.flow.JsonArray

functions to operate with JSON array

Previouspdk.flow.FileNextpdk.flow.JsonObject

Last updated 3 months ago

All functions


addBoolean

adds new element with type Boolean to the input array.

Arguments:

Result:

  • No variable is returned. An array contains a new element.

Possible exceptions

Example:

jsonArray :: pdk.net.JsonArray = []
value :: pdk.core.Boolean = true

addBoolean(jsonArray, value) :: Void ->
jsonArray = [true]
value = true

addFloat

adds new element with type Float to the input array.

Arguments:

Result:

  • No variable is returned. An array contains a new element.

Possible exceptions

Example:

jsonArray :: pdk.net.JsonArray = []
value :: pdk.core.Float = 3.1415

addFloat(jsonArray, value) :: Void ->
jsonArray = [3.1415]
value = 3.1415

addInteger

adds new element with type Integer to the input array.

Arguments:

Result:

  • No variable is returned. An array contains a new element.

Possible exceptions

Example:

jsonArray :: pdk.net.JsonArray = []
value :: pdk.core.Integer = 100

addInteger(jsonArray, value) :: Void ->
jsonArray = [100]
value = 100

addString

adds new element with type String to the input array.

Arguments:

Result:

  • No variable is returned. An array contains a new element.

Possible exceptions

Example:

jsonArray :: pdk.net.JsonArray = []
value :: pdk.core.String = 'Amsterdam'

addString(jsonArray, value) :: Void ->
jsonArray = ['Amsterdam']
value = 'Amsterdam'

addJsonObject

adds new element with type JsonObject to the input array.

Arguments:

Result:

  • No variable is returned. An array contains a new element.

Possible exceptions

Example:

jsonArray :: pdk.net.JsonArray = []
value :: pdk.core.JsonObject = {
    address: 'Korte Ouderkerkerdijk'
}

addJsonObject(jsonArray, value) :: Void ->
jsonArray = [{
    address: 'Korte Ouderkerkerdijk'
}]

value = {
    address: 'Korte Ouderkerkerdijk'
}

addJsonArray

adds new element with type JsonArray to the input array.

Arguments:

Result:

  • No variable is returned. An array contains a new element.

Possible exceptions

Example:

jsonArray :: pdk.net.JsonArray = []
value :: pdk.core.JsonArray = [{
    address: 'Korte Ouderkerkerdijk'
}]

addJsonArray(jsonArray, value) :: Void ->
jsonArray = [[{
    address: 'Korte Ouderkerkerdijk'
}]]

value = [{
    address: 'Korte Ouderkerkerdijk'
}]


setBoolean

replaces the existing element with a new element of type Boolean.

Arguments:

Result:

  • No variable is returned. An array contains a new element.

Possible exceptions

Example:

jsonArray :: pdk.net.JsonArray = [1, 'Amsterdam', 3.1415]
position :: pdk.core.Integer = 1
value :: pdk.core.Boolean = true

setBoolean(jsonArray, position, value) :: Void ->
jsonArray = [1, true, 3.1415]
value = true

setFloat

replaces the existing element with a new element of type Float.

Arguments:

Result:

  • No variable is returned. An array contains a new element.

Possible exceptions

Example:

jsonArray :: pdk.net.JsonArray = [1, 'Amsterdam', false]
position :: pdk.core.Integer = 1
value :: pdk.core.Float = 3.1415

setFloat(jsonArray, position, value) :: Void ->
jsonArray = [1, 3.1415, false]
value = 3.1415

setInteger

replaces the existing element with a new element of type Integer.

Arguments:

Result:

  • No variable is returned. An array contains a new element.

Possible exceptions

Example:

jsonArray :: pdk.net.JsonArray = [3.1415, 'Amsterdam', false]
position :: pdk.core.Integer = 1
value :: pdk.core.Integer = 100

setInteger(jsonArray, position, value) :: Void ->
jsonArray = [3.1415, 100, false]
value = 100

setString

replaces the existing element with a new element of type String.

Arguments:

Result:

  • No variable is returned. An array contains a new element.

Possible exceptions

Example:

jsonArray :: pdk.net.JsonArray = [3.1415, 100, false]
position :: pdk.core.Integer = 1
value :: pdk.core.String = 'Amsterdam'

setString(jsonArray, position, value) :: Void ->
jsonArray = [3.1415, 'Amsterdam', false]
value = 'Amsterdam'

setJsonObject

replaces the existing element with a new element of type JsonObject.

Arguments:

Result:

  • No variable is returned. An array contains a new element.

Possible exceptions

Example:

jsonArray :: pdk.net.JsonArray = [3.1415, 100, false]
position :: pdk.core.Integer = 1
value :: pdk.core.JsonObject = {
    address: 'Korte Ouderkerkerdijk'
}

setJsonObject(jsonArray, position, value) :: Void ->
jsonArray = [3.1415, {
    address: 'Korte Ouderkerkerdijk'
}, false]

value = {
    address: 'Korte Ouderkerkerdijk'
}

setJsonArray

replaces the existing element with a new element of type JsonArray.

Arguments:

Result:

  • No variable is returned. An array contains a new element.

Possible exceptions

Example:

jsonArray :: pdk.net.JsonArray = [3.1415, 100, false]
position :: pdk.core.Integer = 1
value :: pdk.core.JsonArray = [{
    address: 'Korte Ouderkerkerdijk'
}]

setJsonArray(jsonArray, position, value) :: Void ->
jsonArray = [3.1415, [{
    address: 'Korte Ouderkerkerdijk'
}], false]

value = [{
    address: 'Korte Ouderkerkerdijk'
}]

removeItem

removes the element at a specific position from the jsonArray.

Arguments:

Result:

  • No variable is returned. An array without an element removed from the specified position.

Possible exceptions

Example:

jsonArray :: pdk.net.JsonArray = [3.1415, 100, false]
position :: pdk.core.Integer = 1

removeItem(jsonArray, position) :: Void ->
jsonArray = [3.1415, false]

removeAll

removes all elements from the jsonArray.

Arguments:

Result:

  • No variable is returned. An array is empty.

Possible exceptions

Example:

jsonArray :: pdk.net.JsonArray = [3.1415, 100, false]

removeAll(jsonArray) :: Void ->
jsonArray = []

mappingToVariable

assigns the JSON Array data to a variable.

Arguments:

Result:

  • No output. The variable is initialized.

Possible exceptions


jsonArray ::

value ::

- throws if the input jsonArray is NULL

jsonArray ::

value ::

- throws if the input jsonArray is NULL

jsonArray ::

value ::

- throws if the input jsonArray is NULL

jsonArray ::

value ::

- throws if the input jsonArray is NULL

jsonArray ::

value ::

- throws if the input jsonArray is NULL

jsonArray ::

value ::

- throws if the input jsonArray is NULL

jsonArray ::

position ::

value ::

- throws if the index is greater than the length of the jsonArray

- throws if the input array or the position is NULL

jsonArray ::

position ::

value ::

- throws if the index is greater than the length of the jsonArray

- throws if the input array or the position is NULL

jsonArray ::

position ::

value ::

- throws if the index is greater than the length of the jsonArray

- throws if the input array or the position is NULL

jsonArray ::

position ::

value ::

- throws if the index is greater than the length of the jsonArray

- throws if the input array or the position is NULL

jsonArray ::

position ::

value ::

- throws if the index is greater than the length of the jsonArray

- throws if the input array or the position is NULL

jsonArray ::

position ::

value ::

- throws if the index is greater than the length of the jsonArray

- throws if the input array or the position is NULL

jsonArray ::

position ::

- throws if the position is greater than the length of the jsonArray

- throws if the input array or the position is NULL

jsonArray ::

- throws if the input array is NULL

jsonArray ::

variable :: <>

- throws if the input jsonArray is NULL

- throws if the jsonArray item structure can not be mapped to the variable array item structure

addBoolean
addFloat
addInteger
addString
addJsonObject
addJsonArray
setBoolean
setFloat
setInteger
setString
setJsonObject
setJsonArray
removeItem
removeAll
mappingToVariable
JsonMapException
NullPointerException
NullPointerException
NullPointerException
NullPointerException
NullPointerException
NullPointerException
IndexOutOfBoundsException
NullPointerException
IndexOutOfBoundsException
NullPointerException
IndexOutOfBoundsException
NullPointerException
IndexOutOfBoundsException
NullPointerException
IndexOutOfBoundsException
NullPointerException
IndexOutOfBoundsException
NullPointerException
IndexOutOfBoundsException
NullPointerException
NullPointerException
NullPointerException
pdk.net.JsonArray
pdk.net.JsonArray
pdk.net.JsonArray
pdk.net.JsonArray
pdk.net.JsonArray
pdk.net.JsonObject
pdk.net.JsonArray
pdk.net.JsonArray
pdk.net.JsonArray
pdk.net.JsonArray
pdk.net.JsonArray
pdk.net.JsonArray
pdk.net.JsonArray
pdk.net.JsonObject
pdk.net.JsonArray
pdk.net.JsonArray
pdk.net.JsonArray
pdk.net.JsonArray
pdk.net.JsonArray
pdk.core.Boolean
pdk.core.Float
pdk.core.Integer
pdk.core.String
pdk.core.Integer
pdk.core.Boolean
pdk.core.Integer
pdk.core.Float
pdk.core.Integer
pdk.core.Integer
pdk.core.Integer
pdk.core.String
pdk.core.Integer
pdk.core.Integer
pdk.core.Integer
pdk.core.Array
UserObject