خرید بک لینک

Vote count: 0

I'm new to JSON deserialization and scratching my head looking for a solution. I have searched numerous solutions online but none of them serves my purpose.

I have this example JSON data that I get from a webserver:

[943533322,"2016-06-23 02:34:38",{"defaultCSH":[{"defaultCSH1":1},{"defaultCSH2":2}]}","defaultLevel","boot_start",0,"defaultPlayerIdType","defaultPlayerId","2016-06-23 03:34:38","defaultDOB","defaultExperimentId","{"defaultPIDM":[{"defaultPIDM1":1},{"defaultPIDM3":4}]}","{"defaultDIDM":[{"defaultDIDM1":2},{"defaultDIDM3":4}]}",null,"{"status":"boot_start_event","custom":{"defaultCEH":[{"defaultCEH1":1},{"defaultCEH2":2}]}}",16975]

I want to deserialize the values to an object of type string in this format:

id | serverTS |custom | lev | en | s | pidt | pid | ts_event | dob | exid | pidm | didm | event_custom | event_params | dt_part

All the examples I have looked online are for JSON in the format of

{
   "id":"943533322",

   "serverTS":"2016-06-23 02:34:38",

   ...

} 

But how do I deserialize JSON that is in the format

[

  "943533322",

  "2016-06-23 02:34:38",

  ...

]

Any suggestions and help will be really appreciated. Thank you in advance.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 3 تير 1395 ساعت: 10:09

صفحه بندی