Linked Questions

3 votes
1 answer
20k views

How can i convert my dictionary Dictionary<string,string> to JSON string and then again convert from JSON string to Dictionary<string,string> in c#?
Bravo11's user avatar
  • 918
1 vote
1 answer
4k views

I have a Json string "[{'SymptID': '" + MidID + "', 'ALvl' : '" +JawLvl + "'}, {'SymptID': '" + BckID + "', 'ALvl' : '" + PanLvl + "'}, {'SymptID': '" + SysID + "', 'ALvl' : '" + wPLvl + "'}]"  ...
deepu's user avatar
  • 2,029
0 votes
3 answers
2k views

I have string json as "[{\"Key\":\"a\",\"Value\":\"1\"},{\"Key\":\"b\",\"Value\":\"2\"}}]" I want parse to object class abc{ public string a{get; set;} public string b{get; set;} } Please, help me
Thoại Nguyễn's user avatar
0 votes
1 answer
1k views

I have this class: public class ParseJson { private HttpClient _client; public ParseJson() { _client = new HttpClient(); } public async Task<...
runnerpaul's user avatar
  • 7,544
2 votes
1 answer
569 views

i m working on a .net project. I need to convert a json model (which has dynamicly changed numerical node name) to csharp class. Second node's name is changing dynamically, thats why i can not write ...
Emre Erarslan's user avatar
0 votes
0 answers
289 views

I have a Dictionary that i want to JSON-ify into a simple lookup-object. Examine this code: var dictionary = new Dictionary<string, string> {{"test", "value"}, {"test2", "value2"}}; If I Json ...
Per Hornshøj-Schierbeck's user avatar
0 votes
2 answers
298 views

I have a scnerio where i donot know the names of the keys so properties can;t be created beforehand. The JSON needs to be parsed and loaded into Dictionary that is present in a class. The format of ...
abdul's user avatar
  • 157
0 votes
0 answers
241 views

Currently I have a JSON body that I would like to deserialize into a list of objects in C#. The JSON looks very similar to this: { "123": { "id": "123", "description": "Element 1",...
Manky Fox's user avatar
0 votes
1 answer
238 views

I have a JSON similar to the following: { "type": "FeatureCollection", "totalFeatures": "unknown", "features": [ { "type": "Feature", "id": "xxx", ...
teraxxx's user avatar
  • 55
0 votes
0 answers
160 views

How to convert all elements as key value pair in json. EX : { "Id": " 357342524563456678", "title": "Person", "language": "eng", "questionAnswer": [ { "...
Karthikeyan's user avatar
-1 votes
1 answer
107 views

Having to decode an unusually-formatted JSON array, where instead of being an array, the contents are complete objects: { "133v1": { "128": "2024-01-24", ...
Coyttl's user avatar
  • 534
-2 votes
3 answers
98 views

I got this strange API response from external service: { "Columns": { "1": { "Fuels": [ "1", "10", &...
hamaronooo's user avatar
0 votes
0 answers
28 views

I am trying to deserialize this js object in Unity { "1":{ "id":1, "name":"John", "score":0, "character":0, ...
Miika Anundi's user avatar
437 votes
4 answers
442k views

I want to add some rows to a database using Linq to SQL, but I want to make a "custom check" before adding the rows to know if I must add, replace or ignore the incomming rows. I'd like to keep the ...
Tipx's user avatar
  • 7,535
124 votes
5 answers
146k views

I have a web API method that accepts an arbitrary json payload into a JObject property. As such I don't know what's coming but I still need to translate it to .NET types. I would like to have a ...
tucaz's user avatar
  • 6,694

15 30 50 per page
1
2 3 4 5
9