skip to Main Content

Get Keys from dynamic json string in c# – Asp.net

I have a variable json string which looks something like this [{"UserId":1,"PlatformName":"A","Value_Number1":11,"Value_Number2":12}, {"UserId":2,"PlatformName":"B","Value_Number1":13,"Value_Number2":14}] raw output string "[{"UserId":1,"PlatformName":"A","Value_Number1":11,"Value_Number2":12}, {"UserId":2,"PlatformName":"B","Value_Number1":13,"Value_Number2":14}]" I need to extract key names from this json string. i.e userid,platfromName,Value_Number1,Value_number2 This needs to be dynamic as there will be more…

VIEW QUESTION

C# : How to Deserialize json data – Asp.net

How to deserialized this type of json file usig C# My Json [{"data":{"CRC":"a459","PC":"3000","TID":"e2806810200000040a0652c8","antenna":3,"channel":922.75,"eventNum":396,"format":"epc","idHex":"e28068100000003c0a0652c8","peakRssi":-36,"phase":0.0,"reads":36},"timestamp":"2022-09-19T09:03:26.445+0700","type":"SIMPLE"}] My Model public class TagRead{ public string TID { get; set; } } public class Hdr{ public List<TagRead> data { get; set; } } My Controller public…

VIEW QUESTION

Postgresql – SQL: Select distinct items where condition is met

I have a relation in a database as follows: constituents Symbol [{"weight":0.5, "ticker":"WPM"},{"weight":0.5, "ticker":"AEM"}] GLD [{"weight":0.5, "ticker":"XYZ"},{"weight":0.5, "ticker":"ABC"}] KLE [{"weight":1.0, "ticker":"TSLA"}] TSLA [{"weight":1.0, "ticker":"MSFT"}] MSFT [{"weight":0.4, "ticker":"XYZ"},{"weight":0.6, "ticker":"ABC"}] KLE [{"weight":0.3, "ticker":"BBBY"},{"weight":0.7, "ticker":"GME"}] MEME I want to get the distinct symbols…

VIEW QUESTION
Back To Top
Search