I need to parse this type of JSON string and place it database tables eventually. I was thinking :1. parse it into vb .net classes (object) than store it in the tables. I have Newtown imported into my .net but not very familiar with it to be able to break the json to objects.
{
"phenotype_results": [
{
"gName": "CYP2",
"gtype": "*11",
"otype": "normal",
"adjustedPhe": "poor",
"note": "string"
},
{
"gName": "CYP2",
"gtype": "*113",
"otype": "normal",
"adjustedPhe": "poor",
"note": "string"
},
{
"gName": "CYP2",
"gtype": "**1",
"otype": "normal",
"adjustedPhe": "poor",
"note": "string"
},
],
"medics": [
{
"mName": "flax",
"Adj": [
{
"eName": "CYP",
"eType": null,
"substrate": true
},
{
"eName": "CYP3",
"eType": null,
"substrate": true
},
{
"eName": "CYP4",
"eType": null,
"substrate": true
},
],
"associations": [
"CYP20"
],
"recommendation": "No action required. .",
"strength": "",
"source": "DPWG",
"source_url": "https://www.pha.xom",
"pathway_url": "https://www.xxx.yyy"
},
{
"newName": "carba",
"geneAdjustments": [
{
"geneName": "CYP2B6",
"adjType": "Inducer",
"substrate": false
},
{
"geneName": "CYP3A5",
"adjType": "Inducer",
"substrate": true
},
{
"eName": "CYP4",
"eType": null,
"substrate": true
}
],
"assoc": [
"HLA-A",
"HLA-B"
],
"rec": "If cccc do yyy .",
"strength": "STRONG",
"source": "CPIC",
"source_url": "https://www.p",
"pathway_url": "https://www"
}
],
"recommendations": [
{
"associ": [
"HLA1"
],
"recommendation": "Use per stand .",
"strength": "STRONG",
"medName": "vir",
"source": "CPIC",
"actionable": false,
"medType": "Anti-Infective"
},
{
"associ": [
"HLA1"
],
"recommendation": "Use per stand .",
"strength": "STRONG",
"medName": "vir",
"source": "CPIC",
"actionable": false,
"medType": "Anti-Infective"
}
]
}
See json file above and let me know if you have any questions.
Thanks