github.com/instill-ai/component@v0.16.0-beta/pkg/operator/json/v0/config/tasks.json (about)

     1  {
     2    "TASK_MARSHAL": {
     3      "instillShortDescription": "Convert JSON to a string",
     4      "input": {
     5        "description": "Input",
     6        "instillEditOnNodeFields": [
     7          "json"
     8        ],
     9        "instillUIOrder": 0,
    10        "properties": {
    11          "json": {
    12            "description": "JSON input to be marshaled",
    13            "instillAcceptFormats": [
    14              "object",
    15              "semi-structured/*",
    16              "structured/*"
    17            ],
    18            "instillEditOnNodeFields": [],
    19            "instillUIOrder": 0,
    20            "instillUpstreamTypes": [
    21              "reference"
    22            ],
    23            "required": [],
    24            "title": "JSON"
    25          }
    26        },
    27        "required": [
    28          "json"
    29        ],
    30        "title": "Input",
    31        "type": "object"
    32      },
    33      "output": {
    34        "description": "Output",
    35        "instillEditOnNodeFields": [
    36          "string"
    37        ],
    38        "instillUIOrder": 0,
    39        "properties": {
    40          "string": {
    41            "description": "String representation of the JSON input",
    42            "instillFormat": "string",
    43            "instillUIMultiline": true,
    44            "instillUIOrder": 0,
    45            "title": "JSON string",
    46            "type": "string"
    47          }
    48        },
    49        "required": [
    50          "string"
    51        ],
    52        "title": "Output",
    53        "type": "object"
    54      }
    55    },
    56    "TASK_UNMARSHAL": {
    57      "instillShortDescription": "Convert a string to JSON",
    58      "input": {
    59        "description": "Input",
    60        "instillEditOnNodeFields": [
    61          "string"
    62        ],
    63        "instillUIOrder": 0,
    64        "properties": {
    65          "string": {
    66            "description": "JSON string to be unmarshaled",
    67            "instillAcceptFormats": [
    68              "string"
    69            ],
    70            "instillUIMultiline": true,
    71            "instillUIOrder": 0,
    72            "instillUpstreamTypes": [
    73              "value",
    74              "reference",
    75              "template"
    76            ],
    77            "title": "String",
    78            "type": "string"
    79          }
    80        },
    81        "required": [
    82          "string"
    83        ],
    84        "title": "Input",
    85        "type": "object"
    86      },
    87      "output": {
    88        "description": "Output",
    89        "instillEditOnNodeFields": [
    90          "json"
    91        ],
    92        "instillUIOrder": 0,
    93        "properties": {
    94          "json": {
    95            "description": "JSON object extracted from the string input",
    96            "instillEditOnNodeFields": [],
    97            "instillFormat": "semi-structured/json",
    98            "instillUIOrder": 0,
    99            "required": [],
   100            "title": "JSON"
   101          }
   102        },
   103        "required": [
   104          "json"
   105        ],
   106        "title": "Output",
   107        "type": "object"
   108      }
   109    },
   110    "TASK_JQ": {
   111      "instillShortDescription": "Process JSON through a `jq` command",
   112      "title": "jq",
   113      "input": {
   114        "description": "Source JSON and jq command",
   115        "instillUIOrder": 0,
   116        "properties": {
   117          "jsonInput": {
   118            "instillUIOrder": 0,
   119            "description": "JSON string to be processed",
   120            "instillAcceptFormats": [
   121              "string"
   122            ],
   123            "instillUpstreamTypes": [
   124              "value",
   125              "reference",
   126              "template"
   127            ],
   128            "instillUIMultiline": true,
   129            "title": "JSON input",
   130            "type": "string"
   131          },
   132          "jqFilter": {
   133            "instillUIOrder": 1,
   134            "description": "Filter, in `jq` syntax, that will be applied to the JSON input",
   135            "instillAcceptFormats": [
   136              "string"
   137            ],
   138            "instillUpstreamTypes": [
   139              "value",
   140              "reference",
   141              "template"
   142            ],
   143            "instillUIMultiline": true,
   144            "title": "Filter",
   145            "type": "string"
   146          }
   147        },
   148        "required": [
   149          "jsonInput",
   150          "jqFilter"
   151        ],
   152        "title": "Input",
   153        "type": "object"
   154      },
   155      "output": {
   156        "description": "Results of the `jq` command applied to the input JSON",
   157        "instillUIOrder": 0,
   158        "properties": {
   159          "results": {
   160            "description": "The `jq` command results. Depending on the filter and the input JSON the type of each element may vary.",
   161            "instillEditOnNodeFields": [],
   162            "instillUIOrder": 0,
   163            "required": [],
   164            "title": "Results",
   165            "type": "array",
   166            "instillFormat": "array:semi-structured/json",
   167            "items": {
   168              "title": "Result",
   169              "instillFormat": "semi-structured/json"
   170            }
   171          }
   172        },
   173        "required": [
   174          "results"
   175        ],
   176        "title": "Output",
   177        "type": "object"
   178      }
   179    }
   180  }