Skip to content
Last updated

Process JSON

Node type browser_processJson

What it does

Convert or select data using the configured JSON processing mode.

Desktop client configuration

Process JSON configuration in the desktop client

Captured in the English interface of MoreLogin Desktop V2.73.101.

Inputs

These fields belong in data.browserUi.inputs.

FieldType or valuesSchema requiredExecution defaultDescription and bounds
source["null","boolean","number","string"] / array<JSON> / object (supports variable references)No—Input JSON
dataType["null","boolean","number","string"] / array<JSON> / object (supports variable references)No—Data type
processingMode"display" / "organize" / "combine" (supports variable references)Yes—Processing mode
mergeSources["null","boolean","number","string"] / array<JSON> / object (supports variable references)No—Data to merge. Editor initial value ["",""]
fieldMappingsarray<object> (supports variable references)No—Target fields. Editor initial value [{"key":"","from":"field","path":"","value":""}]
conflictPolicy"first" / "last" / string / nullNo—Same-name field handling
showListboolean (supports variable references)NotrueShow list. Editor initial value true
singleResult"first" / "random" (supports variable references)No"first"Result selection. Editor initial value "first"
dedupeEnabledboolean (supports variable references)NofalseDeduplicate. Editor initial value false
dedupeBy"whole" / "field" (supports variable references)No"whole"Deduplication method. Editor initial value "whole"
outputDedupeFieldstringNo—Deduplication field path
sortEnabledboolean (supports variable references)NofalseSort. Editor initial value false
sortBy"field" (supports variable references)No"field"Sort by. Editor initial value "field"
outputSortFieldstringNo—Sort field path
sortDirection"asc" / "desc" / string / nullNo—Sort direction
resultPreview["null","boolean","number","string"] / array<JSON> / object (supports variable references)No—Result preview

Mode requirements and limits

  • processingMode (required, no default) = display/organize/combine: fieldMappings restructures data by target field and source path; mergeSources merges objects/arrays of the same type, and conflictPolicy sets the policy for same-name fields; lists can be deduplicated and sorted, and the first or a random item can be selected. References inside JSON keep their type and are escaped correctly. A missing JSON reference is replaced with an empty string.
  • Validation code RPA_NODE_INPUT_INVALID
  • Required processingMode
  • This field is required in the editor and has no default. If it is omitted, writes and validation return RPA_NODE_INPUT_INVALID (reason=required), and a run is rejected the same way before it starts.
  • Validation code RPA_NODE_INPUT_INVALID

Input references

FieldAllowed forms
sourceliteral, template
dataTypeliteral, template
processingModeliteral, template
mergeSourcesliteral, template
fieldMappingsliteral, template
conflictPolicyliteral, template
showListliteral, template
singleResultliteral, template
dedupeEnabledliteral, template
dedupeByliteral, template
outputDedupeFieldliteral, template
sortEnabledliteral, template
sortByliteral, template
outputSortFieldliteral, template
sortDirectionliteral, template
resultPreviewliteral, template

Outputs

Output fieldType or values
value["null","boolean","number","string"] / array<JSON> / object
countnumber
indexnumber

Reference published fields as ${nodeId.data.field}.

JSON example

A complete node object for a workflow's nodes array or another node's blocks.

{
  "id": "pick_names",
  "type": "browser_processJson",
  "data": {
    "title": "Keep the product name and add a currency",
    "browserAction": "processJson",
    "browserUi": {
      "inputs": {
        "source": [
          {
            "name": "Desk",
            "price": 120
          },
          {
            "name": "Chair",
            "price": 45
          }
        ],
        "processingMode": "organize",
        "fieldMappings": [
          {
            "key": "product",
            "from": "field",
            "path": "name"
          },
          {
            "key": "currency",
            "from": "fixed",
            "value": "USD"
          }
        ]
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}

Back to the node catalog