skip to Main Content

Can someone help me use this Json file in c#?

I have been trying to display contents of a json file in a textbox for the past 6 hours and got nowhere. here's the c# code private thruster Getthruster() { string text = File.ReadAllText(@"./thrusters.json"); List<thruster> test = JsonConvert.DeserializeObject<List<thruster>>(text); textBox1.Text =…

VIEW QUESTION

Json – get a value with jq by matching one of parent value from a variable

I have JSON data as below, in services.json { "checkout-serviceA":{"prId":6644,"Sourcebranch":"","HFX":false,"IS_CR":"Yes"}, "checkout-serviceB":{"prId":15826,"Sourcebranch":"","HFX":false,"IS_CR": "no"}, "checkout-toggle":{"prId":8963,"Sourcebranch":"","HFX":true,"IS_CR": "Yes"}, "checkout-res":{"prId":1104,"Sourcebranch":"","HFX":false,"IS_CR": "Yes"} } I have a variable eg $PRID that contains prID value already. I want to pass this to jq and fetch or get an…

VIEW QUESTION
Back To Top
Search