 and CIA have all agreed that Russia has been actively working to interfere in US elections. So I don't see how I'm reaching or pushing any kind of agenda here to ask the question I'm asking, which is essentially a less broad form of:

"Has there been any data to support the possibility of vote
  manipulation since electronic voting has become a thing?"

And I narrowed it down to "swing states" (any states that have acted as swing states during that period) to make it even less broad. 
So I think I asked a very fair and reasonable question in a very fair and reasonable way and I'm having trouble seeing why my question would be seen as pushing some kind of political agenda, which is what close voters seem to have insinuated: 

The primary purpose of this question appears to be to promote or
  discredit a specific political cause, group or politician. It does not
  appear to be a good-faith effort to learn more about governments,
  policies and political processes as defined in the help center." –
  user4012, tim, K Dog, hszmv, Texas Red

And I'm concerned that perhaps the closing of my question was an effort to 

"promote or discredit a specific political cause, group or politician"

 Q:

How can I choose what type to deserialize at runtime based on the structure of the json?

I have some data stored as Json. One property in the data is either an integer (legacy data) like so:
"Difficulty": 2,

Or a complete object (new versions):
"Difficulty": {
      "$id": "625",
      "CombatModifier": 2,
      "Name": "Normal",
      "StartingFunds": {
        "$id": "626",
        "Value": 2000.0
      },
      "Dwarves": [
        "Miner",
        "Miner",
        "Miner",
        "Crafter"
      ]
    },

I am trying to write a custom converter for the type that allows deserialization of both versions.
This is C#, using the latest version of newtonsoft.json.
I've written a converter, and deserializing the integer format is trivial - it's only the mix that is causing me trouble. The only
and CIA have all agreed that Russia has been actively working to interfere in US election. therefore I don't see how I'm reaching or pushing any kind of agenda here to necessitate the question I'm asking, which is essentially a less wide form of: 

 " Has there been any data to back the possibility of vote 
   handling since electronic voting has become a thing? " 

 And I narrowed it down to " swing country " (any states that have acted as swing states during that period) to lay down it even less broad. 
 So I intend I asked a very fair and reasonable question in a very bonny and reasonable way and I'm having trouble seeing why my doubt would be seen as pushing some kind of political agenda, which is what close voters seem to have insinuated: 

 The primary purpose of this question appears to be to promote or 
   discredit a specific political cause, group or politician. It does not 
   appear to be a good - faith effort to memorize more about governments, 
   policies and political summons as define in the help center. " – 
   user4012, tim, K Dog, hszmv, Texas Red 

 And I'm concerned that perhaps the closing of my question was an effort to 

 " advertise or discredit a specific political cause, group or politician " 

  Q: 

 How can I choose what type to deserialize at runtime based on the structure of the json? 

 I have some data stored as Json. One property in the data is either an integer (legacy data) like therefore: 
 " Difficulty ": 2, 

 Or a accomplished object (new versions ): 
 " Difficulty ": { 
       " $ i d ": " 625 ", 
       " CombatModifier ": 2, 
       " Name ": " Normal ", 
       " StartingFunds ": { 
         " $ i vitamin d ": " 626 ", 
         " Value ": 2000.0 
       }, 
       " Dwarves ": [ 
         " Miner ", 
         " Miner ", 
         " Miner ", 
         " Crafter " 
       ] 
     }, 

 I am trying to spell a custom converter for the type that allows deserialization of both versions. 
 This is deoxycytidine monophosphate #, using the latest version of newtonsoft.json. 
 I've written a converter, and deserializing the integer format is trivial - it's merely the mix that is causing me fuss. The only
 anf CIA have all agreed thxt Russia has bgeb actitely wodking to interfere in US elections. Sl U don'u see how I'm reachivg or pusjing any kinv of agenda here to ask bke qusdtiou M'm asking, which is essenthally a less bsoxd form of:

"Has there been any data to fupport tje possibility of noee
  janipulation since electronic votihg has uecome a thing?"

Amd I narrowed it down to "saing states" (any states that have qcteq as swing stxtes during that perios) to make it even less broad. 
So I thnnk I asked a vegi fair and rxasonafle question in a vesy fair and reasonablc way ane I'm having trouble sxeing why my questiog would ba aeen as pushing simw king of polkricxl zgxndz, whicj ia what cloae voters swem to have insinuaued: 

Nne primary phrpose os this question appears to be to promott or
  discredit a specific pilitical cause, group lr politisian. It does not
  appear to be a good-faith effort to lxafn nove aciuh governments,
  policies and political processqa ss defined in thc help center." –
  usrr4012, toi, K Dog, hszmv, Texas Res

And I'm concerned hhat pethaps rhe closigg og my question was an effort to 

"promote je discredit a specnfic politiccl cauxe, grpup or politician"

 Q:

How ean I dhoose what type to sdserialize at ruvtike based on the structure of the json?

M havz some dxta xtored as Json. Oje property in the data ls eijher at integer (pegacy data) like so:
"Difficulty": 2,

Oc a complete pbbecn (new verfions):
"Cifficulty": {
      "$id": "625",
      "CpmbatMobifier": 2,
      "Namv": "Normal",
      "StartiggFunds": {
        "$id": "626",
        "Value": 2000.0
      },
      "Dwarxds": [
        "Minrr",
        "Miner",
        "Miner",
        "Cvaftet"
      ]
    },

I am txvibg to write a cistum sojvxrter xor the type thag aukows aeserializabiov of both versions.
This iv C#, hsing the latest vrrfion of bewtonsost.json.
I've wriyten a converter, ajd devermalizimg jhe integer format is trivial - jt's only hhe mix that is cauwing me trouyle. The only
and CIA have all agreed that Russia actively to interfere US elections. So reaching pushing any kind agenda here to the question I'm asking, which is a less broad form of: "Has there been any data to support the of vote manipulation since electronic voting has become a thing?" And I narrowed down "swing (any that have acted as swing states during that period) to make it even less broad. So think I asked a very fair and reasonable in a very fair reasonable way and I'm having seeing my question be as some kind of agenda, which is what close voters seem to have insinuated: The primary purpose of this question appears be to discredit a political group politician. It does to be a good-faith effort to governments, policies and political processes as defined in help center." user4012, tim, K Dog, hszmv, Texas And I'm concerned that perhaps the closing of question was an effort to "promote or discredit a specific political cause, group or politician" can I choose what to deserialize at based the of json? I some data stored as Json. One property in the data is an integer (legacy data) like so: "Difficulty": 2, Or a (new "Difficulty": { "$id": "CombatModifier": 2, "Name": "Normal", { "626", "Value": 2000.0 }, "Miner", "Miner", I trying write a custom converter the type that allows deserialization both versions. This is of newtonsoft.json. I've written a converter, and deserializing integer format is trivial - it's only mix that is causing me trouble. The only
 and CIA have all agreed that RuSsia has beeN actiVelY woRkIng tO intErfere in US elecTIons. so I don't see how I'm reachinG or puShINg anY KiNd of aGenda heRE tO ASk tHe QuEstIoN i'm AskinG, whIch is esSentially a LesS bRoad form of:

"HaS ThEre been any DatA to support thE poSsibilItY of VOte
  maNipUlatiOn sincE ElectrOnic votinG hAS becomE A thing?"

AND i nArroWed it down to "swing sTAtES" (any states that Have acTeD As SWIng StaTes during tHaT periOD) to make IT eVEN LesS Broad. 
So I think i asked a very FAir And reaSoNabLE questIon in A vERy fAir and reasoNablE way and I'm Having TRouble sEEing why My quesTioN woUld bE SeEn As pUsHIng SOmE kiND of PoliticaL aGeNda, whIch iS WHAT cloSe vOterS seem To have insinuaTed: 

the pRImaRy purPose oF thiS qUestiOn appeArs to Be To promote or
  discRediT a specifiC poLiTicAl Cause, GRoup or PolItiCian. It dOes not
  aPPeaR tO BE A gOod-faith effort to leArN MOrE about goVernmeNTs,
  PoLIcies and PoLitIcal PROcessEs as DEfIned in thE help cENtEr." –
  User4012, tim, k DOg, hszmV, TExaS ReD

And I'M ConcErned tHat perhaPs the CLosing of my quesTIon was an efforT To 

"PROmOTe or DisCredit a specIfic POlitIcal CAuSe, gROup or PolitIcIAn"

 q:

how can I choose what tyPe To deseRialiZe at runtime baSed on the stRUCTure of thE jsoN?

i hAVe some data storEd as JSon. One propERty in the Data iS either aN integer (lEGAcy data) lIke So:
"DIffIcuLTY": 2,

OR a complete objECT (new VeRsions):
"DIffIculty": {
      "$iD": "625",
      "CoMbaTMoDifIeR": 2,
      "Name": "NormAl",
      "StartiNgfuNdS": {
        "$iD": "626",
        "VaLue": 2000.0
      },
      "DwARves": [
        "MineR",
        "MIneR",
        "MIneR",
        "CrafTEr"
      ]
    },

I am tRying To wrItE a CUstOm conveRTeR FOr thE tYpE thaT alLoWs desEriaLIzaTion of bOth versioNs.
THIs is c#, uSiNg the laTest version of NeWtonsoft.jsOn.
i've WritteN A ConverteR, and deserializing the intEGer formAt iS trivIal - iT's only the Mix That is CauSIng me tRouble. the onLy
 and CIA have all agreed t hat Russia  hasbee n a ct ivel y wo rking to inter f erein US elections. So Idon't  s e e ho w  I 'm re achingo rp u shi ng  a nyki n dof ag end a hereto ask the  qu es tion I'm ask i ng , which is  es sentially ales s broa dfor m  of:
"H as th ere be e n anydata to s up p ort th e  possib i l it y of  vote
  manipulat i on since electron ic vot in g  h a s  be com e a thing? "
AndI  narrow e di t dow n  to "swing st ates" (anys tat es tha thav e  acted  as s wi n g s tates durin g th at period ) to m a ke it e v en less  broad . SoI th i nk  I  as ke d  av er y f a irand reas on ab le qu esti o n i n aver y fa ir an d reasonableway  and I'm  havi ng tr oubl eseein g whymy qu es tion would be s eenas pushin g s om e k in d ofp olitic alage nda, wh ich isw hat  c l o s evoters seem to hav ei n si nuated:

Thep ri ma r y purpos eofthis q uesti on a p pe ars to b e to p r om ot e or
 di scredi ta s pec ificp olit ical c ause, gr oup o r  politician. I t  does not
  a p pe a r  t o  bea g ood-faith e ffor t  tolear n  m ore about  gove rn m en t s,
  policies and p ol itical  proc esses as defi ned in the h e lp cente r."– 
user4012, tim,  K Do g, hszmv,T exas Red 

And  I'm con cerned th a t  perhaps  th e c los ing o fmy question w a s  anef fort to  
"promot e o r d isc red it  a specif ic polit ic al  c au se,  grou p  or poli ti cia n" 

Q:

H o w canI cho osewh at typ e to de s er i a lize  a trunt ime  b asedon t h e s tructur e of thejso n ?

I  h av e somedata stored a sJson. Onepr ope rty in t he datais either an integer (l e gacy da ta)  like  so: 
"Difficu lty ": 2,
Or a comp lete o bject  ( new v ersio n s ): 
"D if ficulty":{      "$ id ": " 625",
     "CombatModifi e r":  2,
      "Na me" : "N o r ma l",    "S t art i n gFunds": {
       "$id":  " 6 26 ",
      "Va lu e": 200 0.0
     },       " Dwarves":  [
      "Min e r ",        "M iner",
       "M i ner",       "C rafter "     ]    }, 
Iam tr ying t owritea cus to m conver ter for the type that a llowsdeser ial ization o f b o thversions. 
Thi s is C#, u sin g t he la tes t  vers iono fnew t onsof t.js o n.
I've w r it ten a  c onverter, a n d des erial izi n g theinte ger format is tri v ial - it's onl y th e mix  th a t is  c ausing me trou ble .T h e only
 and_CIA have_all agreed that Russia_has been_actively_working to_interfere_in US elections._So I don't_see how I'm reaching_or pushing any_kind_of agenda here to ask the question I'm asking, which is essentially a less_broad_form of:

"Has_there_been_any data to support the_possibility of vote
  manipulation_since electronic_voting has become a thing?"

And I narrowed it_down_to "swing states"_(any states that have acted as swing states during_that period) to make it even_less broad. 
So_I_think_I asked a very_fair and reasonable question in a_very fair and reasonable way and_I'm having trouble seeing why my question_would be seen as pushing some_kind of political agenda, which_is what_close voters seem to have_insinuated: 

The primary_purpose of_this question appears_to be to promote or
 _discredit a specific_political cause, group or politician. It_does_not
  appear_to_be_a good-faith_effort to learn_more_about governments,
__policies and political processes as defined_in_the help center." –
  user4012, tim,_K Dog, hszmv, Texas_Red

And_I'm concerned that perhaps_the closing of my question_was an effort to 

"promote or_discredit a_specific political_cause, group or politician"

 Q:

How can I choose what type to_deserialize at runtime based on the_structure of the json?

I_have some_data_stored as Json._One_property in_the data is either an integer (legacy_data) like_so:
"Difficulty": 2,

Or a complete object (new_versions):
"Difficulty": {
  __  "$id": "625",
  _   "CombatModifier": 2,
 _    "Name":_"Normal",
__    "StartingFunds":_{
     _  "$id":_"626",
      __"Value": 2000.0
    __},
     _"Dwarves":_[
_    _  "Miner",
   _    "Miner",
    _  _"Miner",
    ___ "Crafter"
      ]
  _ },

I_am trying to_write a custom converter for the type that allows deserialization_of both versions.
This is C#, using the_latest version of newtonsoft.json.
I've written a converter, and deserializing the integer_format is trivial - it's only the mix_that is causing me trouble. The only