-
-
Save wk-j/eadc4a2e9bde407c95447e2f6773de64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using Newtonsoft.Json; | |
namespace Request | |
{ | |
public class Settings | |
{ | |
public RequestApi[] RequestApi { set; get; } | |
} | |
public class RequestApi | |
{ | |
public string ProcessId { set; get; } | |
public Children[] Children { set; get; } | |
} | |
public class Children | |
{ | |
public string FormId { set; get; } | |
public Dictionary<string, Value> Value { set; get; } | |
} | |
public class Value | |
{ | |
public string Id { set; get; } | |
public string Name { set; get; } | |
} | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var json = File.ReadAllText("resource/A.json"); | |
var obj = JsonConvert.DeserializeObject<Settings>(json); | |
Console.WriteLine(obj.RequestApi[0].Children[0].Value["agree_to_1"].Id); | |
} | |
} | |
} |
Author
wk-j
commented
Jan 19, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment