Timeline for Load JSON data into a C# Class [duplicate]
Current License: CC BY-SA 4.0
13 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 20, 2020 at 9:12 | history | edited | CommunityBot |
Commonmark migration
|
|
| Sep 28, 2018 at 0:56 | history | duplicates list edited | Samuel Liew | duplicates list edited from How can I parse a JSON string that would cause illegal C# identifiers?, Create a strongly typed c# object from json object with ID as the name to How can I deserialize JSON with C#?, How can I parse a JSON string that would cause illegal C# identifiers?, Create a strongly typed c# object from json object with ID as the name | |
| Sep 19, 2018 at 12:52 | history | edited | StayOnTarget | CC BY-SA 4.0 |
edited title
|
| Mar 18, 2018 at 16:55 | history | duplicates list edited | dbc | duplicates list edited from How can I parse a JSON string that would cause illegal C# identifiers? to How can I parse a JSON string that would cause illegal C# identifiers?, Create a strongly typed c# object from json object with ID as the name | |
| Mar 18, 2018 at 16:55 | history | closed | dbc c# Users with the c# badge or a synonym can single-handedly close c# questions as duplicates and reopen them as needed. | Duplicate of How can I parse a JSON string that would cause illegal C# identifiers? | |
| Mar 18, 2018 at 16:53 | history | edited | devklick | CC BY-SA 3.0 |
added 339 characters in body
|
| Mar 18, 2018 at 16:45 | comment | added | devklick | @dbc, this is exactly what I was needing. This allows me to capture the 'name' (FirstItem etc.) and the data for each record that is returned from the API call. Thanks muchly! | |
| Mar 18, 2018 at 16:40 | comment | added | dbc | See for instance How can I parse a JSON string that would cause illegal C# identifiers? or Create a strongly typed c# object from json object with ID as the name for pre-existing questions. | |
| Mar 18, 2018 at 16:36 | history | edited | devklick | CC BY-SA 3.0 |
Updated post to make the data more clear
|
| Mar 18, 2018 at 16:34 | comment | added | dbc |
Are "FirstItem", "SecondItem" and so on variable and not fixed? If so then use a dictionary: var result = JsonConvert.DeserializeObject<Dictionary<string, Data>>(response.Content);
|
|
| Mar 18, 2018 at 16:28 | answer | added | Vidmantas Blazevicius | timeline score: 7 | |
| Mar 18, 2018 at 16:26 | comment | added | Chris Nevill | Have you tried using a Json to poco converter? There's a few online ones that sometimes do a good job. | |
| Mar 18, 2018 at 16:22 | history | asked | devklick | CC BY-SA 3.0 |