Question: I am trying to format Quote items data into a JSON Object to later save to MySQL. the following code produces JSONObject, which is returning an empty JSON object, like this: [{}], even though Quote_Items_Info_Data IS NOT empty. No ...
Question: Here is my code: The ??? is what I’m having trouble with. I want it to go to a string, not a file on disk. Answer: The first code will get you an Array of String, as if it ...
Question: I’m trying to parse this Json With the code: but I keep getting the error at debug The node must be of type ‘JsonObject’.’ on the line How it comes it gives an error If I’m already trying to ...
Question: I’m converting UnixTimeSpan to Date, but I want to display just the Hours-Minutes-Seconds of it. I’m trying with: which return a correct datetime 02/15/2022 20:23:24 but when I’m trying to display just The Hours-Minutes-seconds with: I’m getting the error: ...
Question: Today I rebuilt a WPF application – .NET Framework 4.8 – and our tester came back to me saying that an error was being raised: A TwoWay or OneWayToSource binding cannot work on the read-only property The error itself ...
Question: I need to parse a JSON that comes from a crypto exchange API. In this case, I need to parse my open orders. If there are no open orders, the Json is : which seems a dictionary. As soon ...
Question: I would like to select first element from collection using LINQ WHERE function and lambda, but some elements doesn’t have subjected key (only one of them has it) – and so I’m receiving KeyNotFoundException error… ;-/ see collection structure ...
Question: I’m trying to consume Azure DevOps .NET API, specifically the Git client, from Powershell 5.1. There is a copy of all client libraries under C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer. So first I tried that in a C# program: This ...