JSON路径提取器

时间:2017-07-18 05:40:41

标签: json path extractor

我有以下JSON响应,我想构建JSON表达式,根据给定的“systemId”和“connectionConfig”。“type”值提取“connectionId”。例如,为“systemId”='DHB_K8S_HADOOP_SYS'和“connectionConfig”提取“connectionId”。“type”='S3'

{
  "browse": [
    {
      "name": "DHB_K8S_HDFS_Conn1",
      "type": "connection",
      "connectionId": "DHB_K8S_HDFS_Conn1",
      "systemId": "DHB_K8S_HADOOP_SYS",
      "uri": "hdfs:///",
      "connectionConfig": {
        "type": "HDFS",
        "description": "",
        "connection": "",
        "protocol": "",
        "authentication": {
          "type": "",
          "user": "vora"
        },
        "systemId": "DHB_K8S_HADOOP_SYS",
        "zoneId": "DHB_Zone"
      },
      "children": [
        {}
      ]
    },
    {
      "name": "DHB_K8S_HDFS_S3_Conn1",
      "type": "connection",
      "connectionId": "DHB_K8S_HDFS_S3_Conn1",
      "systemId": "DHB_K8S_HADOOP_SYS",
      "uri": "s3a:/",
      "connectionConfig": {
        "type": "S3",
        "description": "",
        "connection": "",
        "protocol": "",
        "authentication": {},
        "systemId": "DHB_K8S_HADOOP_SYS",
        "zoneId": "DHB_Zone"
      },
      "children": [
        {}
      ]
    },
    {
      "name": "DHB_K8S_VORA_S3",
      "type": "connection",
      "connectionId": "DHB_K8S_VORA_S3",
      "systemId": "DHB_K8S_VORA_SYS",
      "uri": "s3a:/",
      "connectionConfig": {
        "type": "S3",
        "description": "",
        "connection": "",
        "protocol": "",
        "authentication": {},
        "systemId": "DHB_K8S_VORA_SYS",
        "zoneId": "DHB_Zone"
      },
      "children": [
        {}
      ]
    }
  ]
}

感谢任何帮助

0 个答案:

没有答案