Linked Questions
123 questions linked to/from How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?
3
votes
1
answer
20k
views
converting dictionary string string to json string [duplicate]
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#?
1
vote
1
answer
4k
views
How to deserialize the json array of objects to dictionary [duplicate]
I have a Json string
"[{'SymptID': '" + MidID + "', 'ALvl' : '" +JawLvl + "'},
{'SymptID': '" + BckID + "', 'ALvl' : '" + PanLvl + "'},
{'SymptID': '" + SysID + "', 'ALvl' : '" + wPLvl + "'}]"
...
0
votes
3
answers
2k
views
How to parse json key - value to object C# from Request.Properties["MS_QueryNameValuePairs"] [duplicate]
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
0
votes
1
answer
1k
views
Deserialize json to Dictionary<string, string> in C# applicaiton [duplicate]
I have this class:
public class ParseJson
{
private HttpClient _client;
public ParseJson()
{
_client = new HttpClient();
}
public async Task<...
2
votes
1
answer
569
views
converting dynamic json model to c# object [duplicate]
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 ...
0
votes
0
answers
289
views
Map Dictionary<string, string> to simple javascript/json associative array [duplicate]
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 ...
0
votes
2
answers
298
views
Convert JSON Key into Object [duplicate]
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 ...
0
votes
0
answers
241
views
Parsing JSON with C# [duplicate]
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",...
0
votes
1
answer
238
views
c# Parse JSON with no reference class? [duplicate]
I have a JSON similar to the following:
{
"type": "FeatureCollection",
"totalFeatures": "unknown",
"features": [
{
"type": "Feature",
"id": "xxx",
...
0
votes
0
answers
160
views
Json Convert all elements as key value pair [duplicate]
How to convert all elements as key value pair in json.
EX :
{
"Id": " 357342524563456678",
"title": "Person",
"language": "eng",
"questionAnswer": [
{
"...
-1
votes
1
answer
107
views
Object-based JSON array decoding in C# [duplicate]
Having to decode an unusually-formatted JSON array, where instead of being an array, the contents are complete objects:
{
"133v1": {
"128": "2024-01-24",
...
-2
votes
3
answers
98
views
How to setup json deserizlization from Object to Array in C# [duplicate]
I got this strange API response from external service:
{
"Columns": {
"1": {
"Fuels": [
"1",
"10",
&...
0
votes
0
answers
28
views
JS object from Node server to Unity [duplicate]
I am trying to deserialize this js object in Unity
{
"1":{
"id":1,
"name":"John",
"score":0,
"character":0,
...
437
votes
4
answers
442k
views
Convert Linq Query Result to Dictionary
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 ...
124
votes
5
answers
146k
views
Convert JObject into Dictionary<string, object>. Is it possible?
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 ...