在C#中使用JSON配置文件中的值

时间:2019-06-18 08:26:05

标签: c# json

编码器。

这是我的问题: 我有一个保存配置的JSON文件。 现在,我必须将这个JSON文件中的某些值解析为C#代码。

如何在我的C#代码中访问“客户显示的网址”和“ POS标识符”的值?

非常感谢您的帮助。

 "variableGroups": [
    {
      "name": "Configuration",
      "optional": false,
      "order": 1,
      "variables": [
        {
          "name": "CustomerDisplayURL",
          "displayName": "Url of the Customer Display",
          "description": "Url of the Customer Display",
          "type": "string",
          "required": true,
          "default": ""
        },
        {
          "name": "PosId",
          "displayName": "Identifier of the Pos",
          "description": "Identifier of the Pos",
          "type": "number",
          "required": true,
          "default": ""
        }
      ]
    }
  ]

0 个答案:

没有答案
相关问题