I have a JSON string that needs to be parsed and eventually stored in database tables. My plan is to parse it into VB .NET classes (objects) and then store the data in the tables. I have Newtown imported into my .NET environment, but I'm not very familiar with it in order to effectively break down the JSON into 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"
}
]
}
Please review the above JSON file and let me know if you have any questions.
Thank you!