rajesh yadav

rajesh yadav

  • 1.7k
  • 82
  • 9.9k

how to make class of following json

Feb 27 2020 6:05 AM
hi,
 
i have following json
  1. /**  
  2. * Paste one or more documents here 
  3. */  
  4. {  
  5.     "nodeHierarchy": [{  
  6.         "L1""Mechanical"  
  7.     }, {  
  8.         "L2""nical"  
  9.     }, {  
  10.         "L3""nical2"  
  11.     }],  
  12.     "weightage""34",  
  13.     "dateFrom""01 jan 2020",  
  14.     "dateTo""04 Feb 2020",  
  15.     "WSID""Rky6",  
  16.     "scope""4234",  
  17.     "IsLeafNode"true,  
  18.     "Parentnode": [{  
  19.         "L1""Mechanical"  
  20.     }, {  
  21.         "L2""nical"  
  22.     }]  
  23. }  
the L1,L2 is dyanamic it can increase or decrese in both nodeHierarchy and Parentnode keys.
 
pls tel me how can i make a c# class for above structure.
 
 yours sincerley
 

Answers (4)