hopefully you can help me. I want to print the from "addr_data_list" of one of the interface name
{
"fuse_image_metadata": {
"schema_version": 2,
"product_name": "product_X",
"owner": "xyz",
"ecid": "N6X1345_01_x-1_y3",
"2d_barcode": "xxx",
"jtag_id": "xxx",
"last_modified_timestamp": "2021-09-07 11:01:00",
"rule_revision": "0",
"sku_collateral_version": "1.0",
"dff_file": "N6X1345_01_x-1_y3_FT1_20210831_140128_ENG.json",
"fid_image_file": "fid_image_r1.0.json",
"image_builder_name": "fusebuild.py",
"image_builder_version": "0.0"
},
"sku_fuse_data": {
"1.A.PROD": {
"fid_definition": {
"sku_id": "1.TEST.DS0",
"sku_number": "1",
"security_state": "PROD",
"quality_milestone": "DS0",
"num_enabled_cores": "124",
"ate_tp_rev": "0",
"fuse_recipe_rev": "0",
"vf_curve_rev": "0",
"array_rwa_rev": "0",
"thermal_sensor_trim": "static_presi",
"core_disable": "static",
"core_vf_curve": "static_safe_presi",
"other_vf_curve": "static_safe_presi",
"ldo_trim": "static_presi"
},
"ate_sys_fuse_data": {
"format": "binary",
"controller_type": "MSFT_FMC",
"addr_data_map": {
"0": {
"interface": "box_0",
"start_addr": 0,
"data": "00000000000000000000000000000001"
},
"32": {
"interface": "box_0",
"start_addr": 32,
"data": "11110000000000000000000000000000"
}
}
},
"ate_bisr_fuse_data": {
"mock_bisr_0": {
"format": "rle",
"controller_type": "BISR",
"addr_data_map": {
"0": {
"interface": "bisr_0",
"start_addr": 0,
"data": "100p2r150p3r50p"
}
}
},
"mock_bisr_1": {
"format": "rle",
"controller_type": "BISR",
"addr_data_map": {
"0": {
"interface": "bisr_1",
"start_addr": 0,
"data": "999p1r1p"
}
}
}
},
"sfo_fuse_data": {
"system_gsram": {
"format": "binary",
"addr_data_list": [
{
"interface": "gsram_0",
"start_addr": 0,
"data": "1111000000000001"
}
]
},
"mock_bisr_0": {
"format": "rle",
"addr_data_list": [
{
"interface": "bisr_0",
"start_addr": 0,
"data": "100p2r150p3r50p"
}
]
},
"mock_bisr_1": {
"format": "rle",
"addr_data_list": [
{
"interface": "bisr_1",
"start_addr": 0,
"data": "999p1r1p"
}
]
}
}
}
}
}
What I have tried:
using Newtonsoft.Json;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace JosonParser
{
internal class Program
{
static void Main(string[] args)
{
Dictionary<string, object> data = new Dictionary<string, object>();
string jsonFilePath = @"C:\Test2\JosonParser - Copy\JosonParser\N6X1345.json";
string json = File.ReadAllText(jsonFilePath);
Dictionary<string, object> json_Dictionary = JsonConvert.DeserializeObject<Dictionary<string, object>>(json);
foreach ( var item in json_Dictionary)
{
Console.WriteLine(item);
}
}
}
}
#my output should be parse the element
addr_data_list
and print --->
output :
bisr_1
bisr_0
gsram_0