I need to parse a JSON file using C# into smaller parts. I would like to know how can I parse the JSON to get each product like below from "product"(since I need to store each smaller json in other places)? What kind of code I need to write?
"76V3SF2FJC3ZR3GH" : {
"id" : "76V3SF2FJC3ZR3GH",
"attribute1": "AAAAA",
"attribute2": "BBBBB",
"attribute3": "CCCCC"
}
Example of JSON is like:
{
"A" : "XXXXX",
"B" : "XXXXX",
"C" : "XXXXXX",
"D" : "XXXXX",
"products" : {
"76V3SF2FJC3ZR3GH" : {
"id" : "76V3SF2FJC3ZR3GH",
"attribute1": "AAAAA",
"attribute2": "BBBBB",
"attribute3": "CCCCC"
},
"RDXNGJU5DRW4G5ZK" : {
"id" : "RDXNGJU5DRW4G5ZK",
"attribute1": "AAAAA",
"attribute2": "BBBBB",
"attribute3": "CCCCC"
},
......
}
}