Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
is there anyway easy way(library, ect.) to parse and convert this to a C# object?

JSON
{"reason":"Okay","status":0,"AiStatistics":null,"CurrentRankIndex":"6611E021-F52A-4670-9C55-0DD1BE93406F","CurrentSeasonArenaStatistics":null,"Player":{"CampaignProgressCoop":"PartialHeroic","CampaignProgressSp":"PartialNormal","Initialized":true,"IsGuest":false,"LastGameVariantClassPlayed":"Competitive","ReachEmblem":{"background_index":0,"change_colors":[22,0,9,22],"flags":0,"foreground_index":15},"appearance_primary_color":22,"appearance_secondary_color":9,"armor_completion_percentage":0.385620922,"credits_lifetime":1102087,"daily_challenges_completed":85,"first_active":"\/Date(1308979020000-0700)\/","gamertag":"Fox536","games_total":754,"last_active":"\/Date(1321770240000-0800)\/","service_tag":"FOX","weekly_challenges_completed":5,"CommendationState":[{"Key":0,"Value":5323},{"Key":1,"Value":668},{"Key":2,"Value":111},{"Key":3,"Value":390},{"Key":4,"Value":4108},{"Key":5,"Value":733},{"Key":6,"Value":6},{"Key":7,"Value":37},{"Key":8,"Value":1615},{"Key":9,"Value":19},{"Key":10,"Value":76},{"Key":11,"Value":98},{"Key":12,"Value":105},{"Key":13,"Value":2420},{"Key":14,"Value":1359},{"Key":15,"Value":1508},{"Key":16,"Value":1961},{"Key":17,"Value":2918},{"Key":18,"Value":1178},{"Key":19,"Value":2361},{"Key":20,"Value":43},{"Key":21,"Value":267},{"Key":22,"Value":238},{"Key":23,"Value":2873},{"Key":24,"Value":468},{"Key":25,"Value":216},{"Key":26,"Value":31},{"Key":27,"Value":22},{"Key":28,"Value":13},{"Key":29,"Value":444},{"Key":30,"Value":9},{"Key":31,"Value":552},{"Key":32,"Value":296},{"Key":33,"Value":163},{"Key":34,"Value":156},{"Key":35,"Value":440},{"Key":36,"Value":69},{"Key":37,"Value":173},{"Key":38,"Value":96},{"Key":39,"Value":115},{"Key":40,"Value":67},{"Key":41,"Value":67},{"Key":42,"Value":17},{"Key":43,"Value":55},{"Key":44,"Value":0}],"commendation_completion_percentage":0.293333322},"PlayerModelUrl":"\/stats\/reach\/playermodel.ashx?rpis=gE3u6vyTZ6Sq1EQydcNVsxzaAV99jvcmQoVsFmNP7$8=","PlayerModelUrlHiRes":"\/stats\/reach\/playermodel.ashx?rpis=d2puJenzrWdFKHVnrqp2Bw==","PriorSeasonArenaStatistics":null,"StatisticsByMap":null,"StatisticsByPlaylist":null}
Posted
Updated 25-Nov-11 18:19pm
v3

I think JsonTextReader from http://json.codeplex.com/[^] would do the trick.
_________________________________
Yvan Rodrigues · Red Cell Innovation Inc. · L'innovation de Globules Rouges Inc.
 
Share this answer
 
v2
Comments
Fox536 25-Nov-11 23:26pm    
Is there not a built-in reader in .Net v4? I'm trying to avoid including a whole dll, I just figured that there was a .Net v4 library?
Yvan Rodrigues 26-Nov-11 0:17am    
Yes, it's just less mature:

http://msdn.microsoft.com/en-us/library/system.runtime.serialization.json.aspx
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900