Table of Contents

JsonMapFileInputValve

Note

Reads JSON data from file. A new item will be added to the flow with the absolute path of the JSON file. Each key of the root JSON object will be added as a property to the newly added item:

  • Strings will be used directly as the property value

  • For everything else, the value will be serialized into a JSON string

Properties

Name Description Default value Mandatory Supports property expansion
path Path to JSON file. Supports wildcards, and will then return the first matching file. Yes Yes

Example Configuration

{      
  "name": "JsonMapFileInputValve",
  "enabled": "true",
  "config": {
    "path": "C:\Program Files\PhenixID\resources\data.json"
  }
}

Using wildcards

When using wildcards, you may use ** or * and a glob pattern file search will be performed. If the pattern results in a very wide search base it may take some time to execute.

Example Configuration with wildcard

{      
  "name": "JsonMapFileInputValve",
  "enabled": "true",
  "config": {
    "path": "C:\Program Files\**\resources\*.json"
  }
}