SHARE
TWEET

Untitled

a guest Jun 25th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "id": "REDACTED",
  3.   "firstName": {
  4.     "localized": {
  5.       "en_US": "Tina"
  6.     },
  7.     "preferredLocale": {
  8.       "country": "US",
  9.       "language": "en"
  10.     }
  11.   },
  12.   "lastName": {
  13.     "localized": {
  14.       "en_US": "Belcher"
  15.     },
  16.     "preferredLocale": {
  17.       "country": "US",
  18.       "language": "en"
  19.     }
  20.   },
  21.   "profilePicture": {
  22.     "displayImage": "urn:li:digitalmediaAsset:B54328XZFfe2134zTyq"
  23.   }
  24. }
  25.      
  26. {
  27.   "localized": {
  28.     "de_DE": "LinkedIn",
  29.     "en_US": "LinkedIn",
  30.     "es_ES": "LinkedIn",
  31.     "in_ID": "LinkedIn"
  32.   }
  33. }
  34.      
  35. public class Localized
  36. {
  37.     public string en_Us { get; set; }
  38. }
  39.  
  40. public class PreferredLocale
  41. {
  42.     public string country { get; set; }
  43.     public string language { get; set; }
  44. }
  45.  
  46. public class LastName
  47. {
  48.     public Localized localized { get; set; }
  49.     public PreferredLocale preferredLocale { get; set; }
  50. }
  51.  
  52. public class FirstName
  53. {
  54.     public Localized localized { get; set; }
  55.     public PreferredLocale preferredLocale { get; set; }
  56. }
  57.  
  58. public class ProfilePicture
  59. {
  60.     public string displayImage { get; set; }
  61. }
  62.  
  63. public class LinkedLiteProfile
  64. {
  65.     public LastName lastName { get; set; }
  66.     public FirstName firstName { get; set; }
  67.     public ProfilePicture profilePicture { get; set; }
  68.     public string id { get; set; }
  69. }
  70.      
  71. var data = System.IO.File.ReadAllText(<<file address>>);
  72. var result = JsonConvert.DeserializeObject<LinkedLiteProfile>(data);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top