如何从JSON数组提取数据?

时间:2018-06-20 06:02:18

标签: json scala jackson

我有这个JSON数组:

{
    "type": "array",
    "items": {
      "type": "struct",
      "fields": [
        {
          "type": "string",
          "optional": true,
          "field": "FieldName"
        },
        {
          "type": "string",
          "optional": true,
          "field": "FieldValue"
        }
      ],
      "optional": false,
      "name": "Fields"
    },
    "optional": true,
    "name": "Fields",
    "field": "Fields"
  }

我在不同的字段中接收属性名称和值。如何提取与字段名称匹配的值?

0 个答案:

没有答案