Click here to Skip to main content
15,906,301 members
Home / Discussions / C#
   

C#

 
Questionneed help witch creating method Pin
Member 1138393529-Jul-16 23:55
Member 1138393529-Jul-16 23:55 
AnswerRe: need help witch creating method Pin
OriginalGriff30-Jul-16 0:11
mveOriginalGriff30-Jul-16 0:11 
QuestionParsing a string with multiple values - JSON or Retro? Pin
Michael Breeden29-Jul-16 1:48
Michael Breeden29-Jul-16 1:48 
AnswerRe: Parsing a string with multiple values - JSON or Retro? Pin
Richard Deeming29-Jul-16 2:09
mveRichard Deeming29-Jul-16 2:09 
GeneralRe: Parsing a string with multiple values - JSON or Retro? Pin
Michael Breeden29-Jul-16 2:43
Michael Breeden29-Jul-16 2:43 
GeneralRe: Parsing a string with multiple values - JSON or Retro? Pin
Richard Deeming29-Jul-16 2:47
mveRichard Deeming29-Jul-16 2:47 
GeneralRe: Parsing a string with multiple values - JSON or Retro? Pin
Michael Breeden29-Jul-16 3:18
Michael Breeden29-Jul-16 3:18 
GeneralRe: Parsing a string with multiple values - JSON or Retro? Pin
Richard Deeming29-Jul-16 3:36
mveRichard Deeming29-Jul-16 3:36 
Example C is some pretty nasty JSON. Even if you put square brackets around it, you would need to deserialize as a List<Dictionary<string, Dictionary<string, string>>>.
C#
var data = JsonConvert.DeserializeObject<List<Dictionary<string, Dictionary<string, string>>>>(strData);

That would give you a list of two dictionaries, each containing a single key called Parts, the value of which would be a dictionary containing the unique_id, job_id, track_number and job_count.

If the source data is that variable, you'll probably be better off sticking with LINQ to JSON[^].



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Parsing a string with multiple values - JSON or Retro? Pin
Michael Breeden29-Jul-16 4:02
Michael Breeden29-Jul-16 4:02 
Questionconvert Ms access project to c# Pin
dabbourabd28-Jul-16 23:00
dabbourabd28-Jul-16 23:00 
AnswerRe: convert Ms access project to c# Pin
Richard MacCutchan28-Jul-16 23:08
mveRichard MacCutchan28-Jul-16 23:08 
AnswerRe: convert Ms access project to c# Pin
OriginalGriff28-Jul-16 23:09
mveOriginalGriff28-Jul-16 23:09 
GeneralRe: convert Ms access project to c# Pin
dabbourabd28-Jul-16 23:37
dabbourabd28-Jul-16 23:37 
GeneralRe: convert Ms access project to c# Pin
dabbourabd28-Jul-16 23:32
dabbourabd28-Jul-16 23:32 
AnswerRe: convert Ms access project to c# Pin
BillWoodruff29-Jul-16 3:16
professionalBillWoodruff29-Jul-16 3:16 
GeneralRe: convert Ms access project to c# Pin
dabbourabd29-Jul-16 11:00
dabbourabd29-Jul-16 11:00 
AnswerRe: convert Ms access project to c# Pin
Eddy Vluggen29-Jul-16 4:39
professionalEddy Vluggen29-Jul-16 4:39 
GeneralRe: convert Ms access project to c# Pin
dabbourabd29-Jul-16 10:58
dabbourabd29-Jul-16 10:58 
GeneralRe: convert Ms access project to c# Pin
Eddy Vluggen29-Jul-16 14:26
professionalEddy Vluggen29-Jul-16 14:26 
Questionc#, .NET, Application.Idle Event: Confusion with MSDN documentation Pin
User 1106097928-Jul-16 20:11
User 1106097928-Jul-16 20:11 
AnswerRe: c#, .NET, Application.Idle Event: Confusion with MSDN documentation Pin
OriginalGriff28-Jul-16 21:38
mveOriginalGriff28-Jul-16 21:38 
GeneralRe: c#, .NET, Application.Idle Event: Confusion with MSDN documentation Pin
User 1106097928-Jul-16 21:51
User 1106097928-Jul-16 21:51 
QuestionWMF to Base64String Pin
sunsher28-Jul-16 19:11
sunsher28-Jul-16 19:11 
AnswerRe: WMF to Base64String Pin
OriginalGriff28-Jul-16 19:39
mveOriginalGriff28-Jul-16 19:39 
GeneralRe: WMF to Base64String Pin
sunsher28-Jul-16 20:47
sunsher28-Jul-16 20:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.