如何从JSON C#获取数据 [英] How to get data from JSON C#

查看:90
本文介绍了如何从JSON C#获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello社区!

解析JSON脚本时遇到一个问题。

我需要从这个JSON中选择值name(获取类别,例如真棒,搞笑等) ..)



Hello community!
I have one problem with parsing JSON Script.
I need pick value "name" from this JSON (get Category e.g. Awesome, Funny, etc..)

<script type="text/javascript">
    GAG.App.loadConfigs({"page":{"domain":"9gag.com","assets_url":"https:\/\/assets-9gag-fun.9cache.com\/s\/fab0aa49\/c53c975ab707137cbc0e54d9791d000554e1ec18\/static\/dist\/web6\/img","cookie_domain":".9gag.com","back_url":"%2Fgag%2FaPYxoKR","page_key":"Post","webNotiSleepTtl":1800,"sections":{"funny":{"name":"Funny","url":"funny","description":"Why so serious","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1481536354.227_YsUzaZ_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"cute":{"name":"Animals","url":"cute","description":"It's so fluffy I'm gonna die!","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530251140.3714_egeLe5_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"anime-manga":{"name":"Anime & Manga","url":"anime-manga","description":"Anime memes, news, GIFs and discussions.","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1481537858.9056_aZAvYJ_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"animefanart":{"name":"Anime Waifu \ud83c\udd95","url":"animefanart","description":"Anime girl illustrations, fan art\u2026\u00a0No sexually explicit content.","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1551322674.3587_Y2azAt_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"animewallpaper":{"name":"Anime Wallpaper \ud83c\udd95","url":"animewallpaper","description":"Anime-style wallpaper for desktop & mobile. No sexually explicit content.","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1551262100.6848_edUGaQ_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"apexlegends":{"name":"Apex Legends","url":"apexlegends","description":"A new battle royale experience","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1549855511.5665_peqABA_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"ask9gag":{"name":"Ask 9GAG","url":"ask9gag","description":"I have a question","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1464856777.129_sAsYpE_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"awesome":{"name":"Awesome","url":"awesome","description":"Things that make you WOW","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1465779419.894_jErUja_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"basketball":{"name":"Basketball","url":"basketball","description":"2018 NBA Finals highlights and memes","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530272292.9158_UNU7a4_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"car":{"name":"Car","url":"car","description":"Vroom vroom!","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530260694.1347_AguZUv_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"comic":{"name":"Comic","url":"comic","description":"Home of web comics","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1449833500.7438_yRABeH_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"cosplay":{"name":"Cosplay","url":"cosplay","description":"Be the character you love","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530272320.296_EgYGYm_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"country":{"name":"Countryballs","url":"country","description":"Funny comics about countries","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530272314.2039_ujEVUj_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"classicalartmemes":{"name":"Classical Art Memes","url":"classicalartmemes","description":"Your daily source of classical fun","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1516074228.5944_aDynat_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"imadedis":{"name":"DIY & Crafts","url":"imadedis","description":"I made this","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530265741.189_duGePY_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"drawing":{"name":"Drawing & Illustration","url":"drawing","description":"Draw me like a french girl","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530260536.0863_aXaqyB_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"food":{"name":"Food & Drinks","url":"food","description":"Crazy foodies ","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530265743.6263_qYXUZu_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"football":{"name":"Football","url":"football","description":"The most popular sport in the world","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530248204.8105_EdaGUH_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"fortnite":{"name":"Fortnite","url":"fortnite","description":"Fortnite Battle Royale","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530248157.0919_DeVEBU_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"got":{"name":"Game of Thrones \ud83c\udd95","url":"got","description":"GoT memes, discussions, season recap","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1499745262.2374_EPARAM_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"gaming":{"name":"Gaming","url":"gaming","description":"We don't die, we respawn!","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530259851.1459_3ePENe_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"gif":{"name":"GIF","url":"gif","description":"Let's loop the fun ","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530259720.0516_ujE9EV_100x100.jpg","userUploadEnabled":false,"isSensitive":false},"girl":{"name":"Girl","url":"girl","description":"Cute \/ hot \/ sexy \/ pretty girls. No sexually explicit content.","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530272305.3635_LUdyWa_100x100.jpg","userUploadEnabled":true,"isSensitive":true},"goddess":{"name":"Girl Celebrity \ud83c\udd95","url":"goddess","description":"Beautiful celebrities, actresses, singers, models\u2026","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1550822918.575_YBESE8_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"girly":{"name":"Girly Things ","url":"girly","description":"Who run the world? Girls","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530266043.5195_2EVe6y_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"guy":{"name":"Guy","url":"guy","description":"Hot gentlemen","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530266057.8412_hyVahu_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"history":{"name":"History","url":"history","description":"Rediscover the past","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1526281674.2072_A5ypa9_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"horror":{"name":"Horror","url":"horror","description":"Fear to the limit of fun","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530261360.1309_E6uHE9_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"home":{"name":"Home Design","url":"home","description":"My living space","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530260900.9305_e2Ubyz_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"kpop":{"name":"K-Pop","url":"kpop","description":"Korean pop music unite","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1526282722.6178_aLAvUg_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"leagueoflegends":{"name":"League of Legends","url":"leagueoflegends","description":"Welcome to the summoner's rift","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530248173.3432_PEPuBa_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"lego":{"name":"LEGO","url":"lego","description":"Build what you want","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530248048.2805_ypEPeS_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"movie-tv":{"name":"Movie & TV","url":"movie-tv","description":"A way to escape from real world","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530260523.3536_ME2Ate_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"music":{"name":"Music","url":"music","description":"Drop the beat now","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530259812.1693_a5y9Eg_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"nsfw":{"name":"NSFW","url":"nsfw","description":"Not Safe For Work. No sexually explicit content.","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530260711.0104_raryRu_100x100.jpg","userUploadEnabled":true,"isSensitive":true},"overwatch":{"name":"Overwatch","url":"overwatch","description":"Heroes never die","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530248151.5177_HYXesu_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"pcmr":{"name":"PC Master Race","url":"pcmr","description":"Welcome to the glorious PCMR!","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530248234.8012_UWuMY2_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"photography":{"name":"Photography","url":"photography","description":"We love shooting, framing, and hanging","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530259826.4099_AGEDUW_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"pokemon":{"name":"Pok\u00e9mon","url":"pokemon","description":"Gotta catch 'em all","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530248072.5843_YvEvaH_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"politics":{"name":"Politics ","url":"politics","description":"Political jokes. Deep or derp.","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530265591.5186_TA2ebA_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"relationship":{"name":"Relationship","url":"relationship","description":"Unhelpful relationship advice","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530260894.3316_UGEgEg_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"pubg":{"name":"PUBG","url":"pubg","description":"Playerunknown's Battlegrounds","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530248167.0749_vUJuLY_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"roastme":{"name":"Roast Me","url":"roastme","description":"Roast my face with your epic comments","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530266102.3617_e4a5a3_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"savage":{"name":"Savage","url":"savage","description":"Apply cold water to burnt area","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1486965738.2516_AREWuh_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"satisfying":{"name":"Satisfying","url":"satisfying","description":"Your daily eyegasm","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1508144434.9565_yvage8_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"school":{"name":"School","url":"school","description":"Survival guide for students","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530260702.0972_Y7UtAW_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"science":{"name":"Sci-Tech","url":"science","description":"Scientards' fun land","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530262534.5516_YhapuJ_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"starwars":{"name":"Star Wars","url":"starwars","description":"May the force be with you","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530248184.425_E6yQeb_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"superhero":{"name":"Superhero","url":"superhero","description":"With great power comes...","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530261370.1174_eQa8e7_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"surrealmemes":{"name":"Surreal Memes","url":"surrealmemes","description":"Memes in absolutely absurd style","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530263059.533_vE2yHa_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"sport":{"name":"Sport ","url":"sport","description":"The sports fanatics hub ","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530260887.9253_De9yvU_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"travel":{"name":"Travel","url":"travel","description":"Awesome places around the world","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530260881.5824_VUZYQu_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"timely":{"name":"Timely","url":"timely","description":"Your take on news around the world ","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1487151742.7837_YvaDED_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"video":{"name":"Video","url":"video","description":"Hottest clips you should never miss","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530260688.1789_Y4a3an_100x100.jpg","userUploadEnabled":false,"isSensitive":false},"warhammer":{"name":"Warhammer","url":"warhammer","description":"For the emperor","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530248210.4062_eNYbER_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"wallpaper":{"name":"Wallpaper","url":"wallpaper","description":"Awesome pictures for your phone and PC","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530262769.4496_qu8aqY_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"wtf":{"name":"WTF","url":"wtf","description":"Jaw-dropping moments","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530266274.8771_UbySUn_100x100.jpg","userUploadEnabled":true,"isSensitive":false},"darkhumor":{"name":"Dark Humor","url":"darkhumor","description":"One ticket to hell please!","ogImageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530266161.8226_7Ypedu_100x100.jpg","userUploadEnabled":true,"isSensitive":true}},"login":{"errorCode":null},"signup":{"isSignupEnabled":true,"fullNameMaxLength":20,"givenFullName":"","givenEmail":"","errorMsg":""}},"configs":{"facebook":{"appId":"111569915535689","version":"v2.12"},"t":{"trackUrl":"\/\/t.9gag.com\/img.gif","rlogTrackUrl":"\/\/web-t.9gag.com\/img.gif","rlogUrl":"\/\/web-t.9gag.com\/m.gif","appId":"web.9gag.desktop.release","appVersion":"00000"},"comment":{"appId":"a_dd8f2b7d304a10edaf6f29517ea0ca4100a43d1b","host":"comment.9gag.com","cdnHost":"comment-cdn.9gag.com","bucketId":"00000","enableTracking":true,"autoLoadMaxTimes":-1},"noti":{"appId":"a_f9064bdcfce8dec9a2de4c5285505d593155261a","pushHost":"notif-push.9gag.com","pushPort":"443","apiHost":"notif.9gag.com"},"maxFilesize":10485760,"maxGifFilesize":20971520,"maxVideoFilesize":20971520,"captchaPublicKey":"6Lf0iMkSAAAAALGZpEfzpO13sqJNiEgr6znqfm9r","algolia":{"appId":"UE1WSPH0MV","apiKey":"60eed3f0381c8be26873bf1e36fd23f6","searchIndex":"post-tags","minSuggestCount":0}},"user":{},"rcfgAds":{"list_default":{"displayAdEnabled":true,"placements":{"banner_top":{"rules":[{"adTag":"\/16921351\/9GAG\/Unit8","occurrence":"","adNetwork":"Sortable","idRangeStart":0,"idRangeEnd":10000,"width":"970px","height":"250px"}],"displayType":1},"inline_ad":{"rules":[{"adTag":" ","occurrence":"2,4,9999","adNetwork":"Sortable","idRangeStart":0,"idRangeEnd":10000,"width":"300px","height":"250px"}],"displayType":2},"sidebar_bottom":{"rules":[{"adTag":"\/16921351\/9GAG\/Unit5","occurrence":"","adNetwork":"Sortable","idRangeStart":0,"idRangeEnd":10000,"width":"300px","height":"600px"}],"displayType":1},"sidebar_top":{"rules":[{"adTag":"\/16921351\/9GAG\/Unit1","occurrence":"","adNetwork":"Sortable","idRangeStart":0,"idRangeEnd":10000,"width":"300px","height":"250px"}],"displayType":1}}},"post_default":{"displayAdEnabled":true,"placements":{"banner_top":{"rules":[{"adTag":"\/16921351\/9GAG\/Unit8","occurrence":"","adNetwork":"Sortable","idRangeStart":0,"idRangeEnd":10000,"width":"970px","height":"250px"}],"displayType":1},"sidebar_bottom":{"rules":[{"adTag":"\/16921351\/9GAG\/Unit5","occurrence":"","adNetwork":"Sortable","idRangeStart":0,"idRangeEnd":10000,"width":"300px","height":"600px"}],"displayType":1},"sidebar_top":{"rules":[{"adTag":"\/16921351\/9GAG\/Unit1","occurrence":"","adNetwork":"Sortable","idRangeStart":0,"idRangeEnd":10000,"width":"300px","height":"250px"}],"displayType":1}}}},"sticky":{"buttons":[["\ud83d\ude02  Have fun on your phone!","http:\/\/9gag.com\/apps?ref=havefun","6"],["Like us now!","https:\/\/www.facebook.com\/9gag?ref=likeus","6"],["Follow us on Instagram!","https:\/\/instagram.com\/9gag?ref=followus","6"],["Watch viral videos!","http:\/\/9gag.com\/video?ref=viralvideo","6"],["Download our FREE apps!","http:\/\/9gag.com\/apps?ref=freeapps","6"],["Watch the best videos!","http:\/\/9gag.com\/video?ref=bestvideos","6"],["Follow us on Twitter!","https:\/\/twitter.com\/9gag?ref=followus","6"]],"dismiss":120,"noAd":12},"data":{"post":{"id":"aPYxoKR","url":"http:\/\/9gag.com\/gag\/aPYxoKR","title":"The mvp we need","type":"Photo","nsfw":0,"upVoteCount":9769,"downVoteCount":277,"creationTs":1550244273,"promoted":0,"isVoteMasked":0,"hasLongPostCover":0,"images":{"image700":{"width":552,"height":1039,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aPYxoKR_700b.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/aPYxoKR_700bwp.webp"},"image460":{"width":460,"height":865,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aPYxoKR_460s.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/aPYxoKR_460swp.webp"}},"sourceDomain":"","sourceUrl":"","commentsCount":131,"postSection":{"name":"Awesome","url":"https:\/\/9gag.com\/awesome","imageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1465779419.894_jErUja_100x100.jpg"},"tags":[{"key":"mvp","url":"\/tag\/mvp"}],"descriptionHtml":""},"nextPosts":[{"id":"aPY8png","url":"http:\/\/9gag.com\/gag\/aPY8png","title":"Ugly girl...!!!","type":"Photo","nsfw":0,"upVoteCount":865,"downVoteCount":58,"creationTs":1552720907,"promoted":0,"isVoteMasked":0,"hasLongPostCover":0,"images":{"image700":{"width":700,"height":581,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aPY8png_700b.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/aPY8png_700bwp.webp"},"image460":{"width":460,"height":382,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aPY8png_460s.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/aPY8png_460swp.webp"}},"sourceDomain":"","sourceUrl":"","commentsCount":41,"postSection":{"name":"Funny","url":"https:\/\/9gag.com\/funny","imageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1481536354.227_YsUzaZ_100x100.jpg"},"tags":[],"descriptionHtml":""},{"id":"amBmdEd","url":"http:\/\/9gag.com\/gag\/amBmdEd","title":"What a nice turn of events","type":"Animated","nsfw":0,"upVoteCount":876,"downVoteCount":42,"creationTs":1552726283,"promoted":0,"isVoteMasked":0,"hasLongPostCover":0,"images":{"image700":{"width":270,"height":480,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/amBmdEd_460s.jpg"},"image460":{"width":270,"height":480,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/amBmdEd_460s.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/amBmdEd_460swp.webp"},"image460sv":{"width":270,"height":480,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/amBmdEd_460sv.mp4","hasAudio":0,"duration":0,"h265Url":"https:\/\/img-9gag-fun.9cache.com\/photo\/amBmdEd_460svh265.mp4","vp9Url":"https:\/\/img-9gag-fun.9cache.com\/photo\/amBmdEd_460svvp9.webm"},"image460svwm":{"width":270,"height":480,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/amBmdEd_460svwm.webm","hasAudio":0,"duration":0}},"sourceDomain":"","sourceUrl":"","commentsCount":30,"postSection":{"name":"WTF","url":"https:\/\/9gag.com\/wtf","imageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530266274.8771_UbySUn_100x100.jpg"},"tags":[{"key":"Boston Terrier","url":"\/tag\/boston-terrier"},{"key":"Italian Greyhound","url":"\/tag\/italian-greyhound"}],"descriptionHtml":""},{"id":"aNYVqMG","url":"http:\/\/9gag.com\/gag\/aNYVqMG","title":"...the smallest seed of an idea can grow to define or destroy you.","type":"Photo","nsfw":0,"upVoteCount":903,"downVoteCount":81,"creationTs":1552723415,"promoted":0,"isVoteMasked":0,"hasLongPostCover":0,"images":{"image700":{"width":662,"height":647,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aNYVqMG_700b.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/aNYVqMG_700bwp.webp"},"image460":{"width":460,"height":449,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aNYVqMG_460s.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/aNYVqMG_460swp.webp"}},"sourceDomain":"","sourceUrl":"","commentsCount":84,"postSection":{"name":"Funny","url":"https:\/\/9gag.com\/funny","imageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1481536354.227_YsUzaZ_100x100.jpg"},"tags":[],"descriptionHtml":""},{"id":"aYYPd6m","url":"http:\/\/9gag.com\/gag\/aYYPd6m","title":"Pig loaf","type":"Animated","nsfw":0,"upVoteCount":1044,"downVoteCount":126,"creationTs":1552723404,"promoted":0,"isVoteMasked":0,"hasLongPostCover":0,"images":{"image700":{"width":460,"height":460,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aYYPd6m_460s.jpg"},"image460":{"width":460,"height":460,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aYYPd6m_460s.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/aYYPd6m_460swp.webp"},"image460sv":{"width":460,"height":460,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aYYPd6m_460sv.mp4","hasAudio":0,"duration":0,"h265Url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aYYPd6m_460svh265.mp4","vp9Url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aYYPd6m_460svvp9.webm"},"image460svwm":{"width":460,"height":460,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aYYPd6m_460svwm.webm","hasAudio":0,"duration":0}},"sourceDomain":"","sourceUrl":"","commentsCount":55,"postSection":{"name":"GIF","url":"https:\/\/9gag.com\/gif","imageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530259720.0516_ujE9EV_100x100.jpg"},"tags":[{"key":"Pig","url":"\/tag\/pig"},{"key":"Domestic pig","url":"\/tag\/domestic-pig"}],"descriptionHtml":""},{"id":"abYWd79","url":"http:\/\/9gag.com\/gag\/abYWd79","title":"The reaction","type":"Animated","nsfw":0,"upVoteCount":1947,"downVoteCount":113,"creationTs":1552725851,"promoted":0,"isVoteMasked":0,"hasLongPostCover":0,"images":{"image700":{"width":400,"height":326,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/abYWd79_460s.jpg"},"image460":{"width":400,"height":326,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/abYWd79_460s.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/abYWd79_460swp.webp"},"image460sv":{"width":400,"height":326,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/abYWd79_460sv.mp4","hasAudio":0,"duration":0,"h265Url":"https:\/\/img-9gag-fun.9cache.com\/photo\/abYWd79_460svh265.mp4","vp9Url":"https:\/\/img-9gag-fun.9cache.com\/photo\/abYWd79_460svvp9.webm"},"image460svwm":{"width":400,"height":326,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/abYWd79_460svwm.webm","hasAudio":0,"duration":0}},"sourceDomain":"","sourceUrl":"","commentsCount":66,"postSection":{"name":"GIF","url":"https:\/\/9gag.com\/gif","imageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530259720.0516_ujE9EV_100x100.jpg"},"tags":[],"descriptionHtml":""},{"id":"aZLQd10","url":"http:\/\/9gag.com\/gag\/aZLQd10","title":"Old but gold","type":"Animated","nsfw":0,"upVoteCount":1262,"downVoteCount":85,"creationTs":1552717089,"promoted":0,"isVoteMasked":0,"hasLongPostCover":0,"images":{"image700":{"width":320,"height":240,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aZLQd10_460s.jpg"},"image460":{"width":320,"height":240,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aZLQd10_460s.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/aZLQd10_460swp.webp"},"image460sv":{"width":320,"height":240,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aZLQd10_460sv.mp4","hasAudio":1,"duration":157,"h265Url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aZLQd10_460svh265.mp4","vp9Url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aZLQd10_460svvp9.webm"},"image460svwm":{"width":320,"height":240,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aZLQd10_460svwm.webm","hasAudio":1,"duration":157}},"sourceDomain":"","sourceUrl":"","commentsCount":66,"postSection":{"name":"Music","url":"https:\/\/9gag.com\/music","imageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530259812.1693_a5y9Eg_100x100.jpg"},"tags":[{"key":"Hanni Autere","url":"\/tag\/hanni-autere"}],"descriptionHtml":""},{"id":"aqKQd8M","url":"http:\/\/9gag.com\/gag\/aqKQd8M","title":"That effin moment.","type":"Photo","nsfw":0,"upVoteCount":1201,"downVoteCount":52,"creationTs":1552717754,"promoted":0,"isVoteMasked":0,"hasLongPostCover":0,"images":{"image700":{"width":594,"height":860,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aqKQd8M_700b.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/aqKQd8M_700bwp.webp"},"image460":{"width":460,"height":665,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/aqKQd8M_460s.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/aqKQd8M_460swp.webp"}},"sourceDomain":"","sourceUrl":"","commentsCount":52,"postSection":{"name":"Football","url":"https:\/\/9gag.com\/football","imageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530248204.8105_EdaGUH_100x100.jpg"},"tags":[{"key":"cristiano ronaldo","url":"\/tag\/cristiano-ronaldo"},{"key":"lionel messi","url":"\/tag\/lionel-messi"},{"key":"Antonella Roccuzzo","url":"\/tag\/antonella-roccuzzo"},{"key":"2015 FIFA Ballon dOr","url":"\/tag\/2015-fifa-ballon-dor"},{"key":"FC Barcelona","url":"\/tag\/fc-barcelona"}],"descriptionHtml":""},{"id":"a6OnxZq","url":"http:\/\/9gag.com\/gag\/a6OnxZq","title":"Patricia","type":"Photo","nsfw":0,"upVoteCount":1378,"downVoteCount":158,"creationTs":1552716038,"promoted":0,"isVoteMasked":0,"hasLongPostCover":0,"images":{"image700":{"width":652,"height":1393,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/a6OnxZq_700b.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/a6OnxZq_700bwp.webp"},"image460":{"width":460,"height":982,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/a6OnxZq_460s.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/a6OnxZq_460swp.webp"}},"sourceDomain":"","sourceUrl":"","commentsCount":155,"postSection":{"name":"Movie & TV","url":"https:\/\/9gag.com\/movie-tv","imageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530260523.3536_ME2Ate_100x100.jpg"},"tags":[{"key":"etc","url":"\/tag\/etc"},{"key":"split","url":"\/tag\/split"},{"key":"james mcavoy","url":"\/tag\/james-mcavoy"}],"descriptionHtml":""},{"id":"a6Onxp9","url":"http:\/\/9gag.com\/gag\/a6Onxp9","title":"Love his expression tho","type":"Photo","nsfw":0,"upVoteCount":2007,"downVoteCount":102,"creationTs":1552719466,"promoted":0,"isVoteMasked":0,"hasLongPostCover":0,"images":{"image700":{"width":616,"height":960,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/a6Onxp9_700b.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/a6Onxp9_700bwp.webp"},"image460":{"width":460,"height":716,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/a6Onxp9_460s.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/a6Onxp9_460swp.webp"}},"sourceDomain":"","sourceUrl":"","commentsCount":64,"postSection":{"name":"Funny","url":"https:\/\/9gag.com\/funny","imageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1481536354.227_YsUzaZ_100x100.jpg"},"tags":[{"key":"K L Rahul","url":"\/tag\/k-l-rahul"},{"key":"Indiana","url":"\/tag\/indiana"},{"key":"India","url":"\/tag\/india"}],"descriptionHtml":""},{"id":"axzbA3K","url":"http:\/\/9gag.com\/gag\/axzbA3K","title":"When I'm tryin to sleep after mixing weed with alcohol.","type":"Animated","nsfw":0,"upVoteCount":2057,"downVoteCount":51,"creationTs":1552717339,"promoted":0,"isVoteMasked":0,"hasLongPostCover":0,"images":{"image700":{"width":460,"height":258,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/axzbA3K_460s.jpg"},"image460":{"width":460,"height":258,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/axzbA3K_460s.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/axzbA3K_460swp.webp"},"image460sv":{"width":460,"height":258,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/axzbA3K_460sv.mp4","hasAudio":0,"duration":0,"h265Url":"https:\/\/img-9gag-fun.9cache.com\/photo\/axzbA3K_460svh265.mp4","vp9Url":"https:\/\/img-9gag-fun.9cache.com\/photo\/axzbA3K_460svvp9.webm"},"image460svwm":{"width":460,"height":258,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/axzbA3K_460svwm.webm","hasAudio":0,"duration":0}},"sourceDomain":"","sourceUrl":"","commentsCount":92,"postSection":{"name":"GIF","url":"https:\/\/9gag.com\/gif","imageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530259720.0516_ujE9EV_100x100.jpg"},"tags":[],"descriptionHtml":""},{"id":"awAL8Lx","url":"http:\/\/9gag.com\/gag\/awAL8Lx","title":"That could make the movie 'good'.","type":"Animated","nsfw":1,"upVoteCount":1327,"downVoteCount":60,"creationTs":1552718400,"promoted":0,"isVoteMasked":0,"hasLongPostCover":0,"images":{"image700":{"width":460,"height":258,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/awAL8Lx_460s.jpg"},"image460":{"width":460,"height":258,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/awAL8Lx_460s.jpg","webpUrl":"https:\/\/img-9gag-fun.9cache.com\/photo\/awAL8Lx_460swp.webp"},"image460sv":{"width":460,"height":258,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/awAL8Lx_460sv.mp4","hasAudio":1,"duration":12,"h265Url":"https:\/\/img-9gag-fun.9cache.com\/photo\/awAL8Lx_460svh265.mp4","vp9Url":"https:\/\/img-9gag-fun.9cache.com\/photo\/awAL8Lx_460svvp9.webm"},"image460svwm":{"width":460,"height":258,"url":"https:\/\/img-9gag-fun.9cache.com\/photo\/awAL8Lx_460svwm.webm","hasAudio":1,"duration":12}},"sourceDomain":"","sourceUrl":"","commentsCount":46,"postSection":{"name":"Video","url":"https:\/\/9gag.com\/video","imageUrl":"https:\/\/miscmedia-9gag-fun.9cache.com\/images\/thumbnail-facebook\/1530260688.1789_Y4a3an_100x100.jpg"},"tags":[{"key":"aladdin","url":"\/tag\/aladdin"},{"key":"the fresh prince of bel a","url":"\/tag\/the-fresh-prince-of-bel-a"},{"key":"will smith","url":"\/tag\/will-smith"}],"descriptionHtml":""}],"nextCursor":"id=awAL8Lx&direction=next"}}).loadAsynScripts(['facebook', 'twitter', 'recaptcha']);
</script>





What I have tried:





What I have tried:

HtmlNode Categories = doc.DocumentNode.SelectSingleNode("//script[contains(text(), 'GAG.App.loadConfigs')]");

 HtmlAttribute script;
 script = Categories.Attributes["name"];
 returnvalue += "Category = " + script;

推荐答案

c# parse json - Google Search[^]


I’ve written an article on how to Working with JSON in C# & VB[^] as it is a very common question asked.



Using JSON Utils: Generate C#, VB.Net, SQL Table, Java and PHP from JSON[^] , I get the following class structure:

I've written an article on how to Working with JSON in C# & VB[^] as it is a very common question asked.

Using JSON Utils: Generate C#, VB.Net, SQL Table, Java and PHP from JSON[^] , I get the following class structure:
public class Funny
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Cute
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class AnimeManga
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Animefanart
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Animewallpaper
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Apexlegends
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Ask9gag
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Awesome
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Basketball
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Car
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Comic
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Cosplay
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Country
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Classicalartmemes
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Imadedis
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Drawing
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Food
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Football
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Fortnite
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Got
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Gaming
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Gif
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Girl
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Goddess
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Girly
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Guy
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class History
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Horror
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Home
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Kpop
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Leagueoflegends
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Lego
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class MovieTv
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Music
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Nsfw
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Overwatch
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Pcmr
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Photography
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Pokemon
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Politics
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Relationship
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Pubg
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Roastme
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Savage
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Satisfying
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class School
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Science
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Starwars
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Superhero
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Surrealmemes
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Sport
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Travel
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Timely
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Video
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Warhammer
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Wallpaper
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Wtf
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Darkhumor
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("description")]
    public string Description { get; set; }

    [JsonProperty("ogImageUrl")]
    public string OgImageUrl { get; set; }

    [JsonProperty("userUploadEnabled")]
    public bool UserUploadEnabled { get; set; }

    [JsonProperty("isSensitive")]
    public bool IsSensitive { get; set; }
}

public class Sections
{

    [JsonProperty("funny")]
    public Funny Funny { get; set; }

    [JsonProperty("cute")]
    public Cute Cute { get; set; }

    [JsonProperty("anime-manga")]
    public AnimeManga AnimeManga { get; set; }

    [JsonProperty("animefanart")]
    public Animefanart Animefanart { get; set; }

    [JsonProperty("animewallpaper")]
    public Animewallpaper Animewallpaper { get; set; }

    [JsonProperty("apexlegends")]
    public Apexlegends Apexlegends { get; set; }

    [JsonProperty("ask9gag")]
    public Ask9gag Ask9gag { get; set; }

    [JsonProperty("awesome")]
    public Awesome Awesome { get; set; }

    [JsonProperty("basketball")]
    public Basketball Basketball { get; set; }

    [JsonProperty("car")]
    public Car Car { get; set; }

    [JsonProperty("comic")]
    public Comic Comic { get; set; }

    [JsonProperty("cosplay")]
    public Cosplay Cosplay { get; set; }

    [JsonProperty("country")]
    public Country Country { get; set; }

    [JsonProperty("classicalartmemes")]
    public Classicalartmemes Classicalartmemes { get; set; }

    [JsonProperty("imadedis")]
    public Imadedis Imadedis { get; set; }

    [JsonProperty("drawing")]
    public Drawing Drawing { get; set; }

    [JsonProperty("food")]
    public Food Food { get; set; }

    [JsonProperty("football")]
    public Football Football { get; set; }

    [JsonProperty("fortnite")]
    public Fortnite Fortnite { get; set; }

    [JsonProperty("got")]
    public Got Got { get; set; }

    [JsonProperty("gaming")]
    public Gaming Gaming { get; set; }

    [JsonProperty("gif")]
    public Gif Gif { get; set; }

    [JsonProperty("girl")]
    public Girl Girl { get; set; }

    [JsonProperty("goddess")]
    public Goddess Goddess { get; set; }

    [JsonProperty("girly")]
    public Girly Girly { get; set; }

    [JsonProperty("guy")]
    public Guy Guy { get; set; }

    [JsonProperty("history")]
    public History History { get; set; }

    [JsonProperty("horror")]
    public Horror Horror { get; set; }

    [JsonProperty("home")]
    public Home Home { get; set; }

    [JsonProperty("kpop")]
    public Kpop Kpop { get; set; }

    [JsonProperty("leagueoflegends")]
    public Leagueoflegends Leagueoflegends { get; set; }

    [JsonProperty("lego")]
    public Lego Lego { get; set; }

    [JsonProperty("movie-tv")]
    public MovieTv MovieTv { get; set; }

    [JsonProperty("music")]
    public Music Music { get; set; }

    [JsonProperty("nsfw")]
    public Nsfw Nsfw { get; set; }

    [JsonProperty("overwatch")]
    public Overwatch Overwatch { get; set; }

    [JsonProperty("pcmr")]
    public Pcmr Pcmr { get; set; }

    [JsonProperty("photography")]
    public Photography Photography { get; set; }

    [JsonProperty("pokemon")]
    public Pokemon Pokemon { get; set; }

    [JsonProperty("politics")]
    public Politics Politics { get; set; }

    [JsonProperty("relationship")]
    public Relationship Relationship { get; set; }

    [JsonProperty("pubg")]
    public Pubg Pubg { get; set; }

    [JsonProperty("roastme")]
    public Roastme Roastme { get; set; }

    [JsonProperty("savage")]
    public Savage Savage { get; set; }

    [JsonProperty("satisfying")]
    public Satisfying Satisfying { get; set; }

    [JsonProperty("school")]
    public School School { get; set; }

    [JsonProperty("science")]
    public Science Science { get; set; }

    [JsonProperty("starwars")]
    public Starwars Starwars { get; set; }

    [JsonProperty("superhero")]
    public Superhero Superhero { get; set; }

    [JsonProperty("surrealmemes")]
    public Surrealmemes Surrealmemes { get; set; }

    [JsonProperty("sport")]
    public Sport Sport { get; set; }

    [JsonProperty("travel")]
    public Travel Travel { get; set; }

    [JsonProperty("timely")]
    public Timely Timely { get; set; }

    [JsonProperty("video")]
    public Video Video { get; set; }

    [JsonProperty("warhammer")]
    public Warhammer Warhammer { get; set; }

    [JsonProperty("wallpaper")]
    public Wallpaper Wallpaper { get; set; }

    [JsonProperty("wtf")]
    public Wtf Wtf { get; set; }

    [JsonProperty("darkhumor")]
    public Darkhumor Darkhumor { get; set; }
}

public class Login
{

    [JsonProperty("errorCode")]
    public object ErrorCode { get; set; }
}

public class Signup
{

    [JsonProperty("isSignupEnabled")]
    public bool IsSignupEnabled { get; set; }

    [JsonProperty("fullNameMaxLength")]
    public int FullNameMaxLength { get; set; }

    [JsonProperty("givenFullName")]
    public string GivenFullName { get; set; }

    [JsonProperty("givenEmail")]
    public string GivenEmail { get; set; }

    [JsonProperty("errorMsg")]
    public string ErrorMsg { get; set; }
}

public class Page
{

    [JsonProperty("domain")]
    public string Domain { get; set; }

    [JsonProperty("assets_url")]
    public string AssetsUrl { get; set; }

    [JsonProperty("cookie_domain")]
    public string CookieDomain { get; set; }

    [JsonProperty("back_url")]
    public string BackUrl { get; set; }

    [JsonProperty("page_key")]
    public string PageKey { get; set; }

    [JsonProperty("webNotiSleepTtl")]
    public int WebNotiSleepTtl { get; set; }

    [JsonProperty("sections")]
    public Sections Sections { get; set; }

    [JsonProperty("login")]
    public Login Login { get; set; }

    [JsonProperty("signup")]
    public Signup Signup { get; set; }
}

public class Facebook
{

    [JsonProperty("appId")]
    public string AppId { get; set; }

    [JsonProperty("version")]
    public string Version { get; set; }
}

public class T
{

    [JsonProperty("trackUrl")]
    public string TrackUrl { get; set; }

    [JsonProperty("rlogTrackUrl")]
    public string RlogTrackUrl { get; set; }

    [JsonProperty("rlogUrl")]
    public string RlogUrl { get; set; }

    [JsonProperty("appId")]
    public string AppId { get; set; }

    [JsonProperty("appVersion")]
    public string AppVersion { get; set; }
}

public class Comment
{

    [JsonProperty("appId")]
    public string AppId { get; set; }

    [JsonProperty("host")]
    public string Host { get; set; }

    [JsonProperty("cdnHost")]
    public string CdnHost { get; set; }

    [JsonProperty("bucketId")]
    public string BucketId { get; set; }

    [JsonProperty("enableTracking")]
    public bool EnableTracking { get; set; }

    [JsonProperty("autoLoadMaxTimes")]
    public int AutoLoadMaxTimes { get; set; }
}

public class Noti
{

    [JsonProperty("appId")]
    public string AppId { get; set; }

    [JsonProperty("pushHost")]
    public string PushHost { get; set; }

    [JsonProperty("pushPort")]
    public string PushPort { get; set; }

    [JsonProperty("apiHost")]
    public string ApiHost { get; set; }
}

public class Algolia
{

    [JsonProperty("appId")]
    public string AppId { get; set; }

    [JsonProperty("apiKey")]
    public string ApiKey { get; set; }

    [JsonProperty("searchIndex")]
    public string SearchIndex { get; set; }

    [JsonProperty("minSuggestCount")]
    public int MinSuggestCount { get; set; }
}

public class Configs
{

    [JsonProperty("facebook")]
    public Facebook Facebook { get; set; }

    [JsonProperty("t")]
    public T T { get; set; }

    [JsonProperty("comment")]
    public Comment Comment { get; set; }

    [JsonProperty("noti")]
    public Noti Noti { get; set; }

    [JsonProperty("maxFilesize")]
    public int MaxFilesize { get; set; }

    [JsonProperty("maxGifFilesize")]
    public int MaxGifFilesize { get; set; }

    [JsonProperty("maxVideoFilesize")]
    public int MaxVideoFilesize { get; set; }

    [JsonProperty("captchaPublicKey")]
    public string CaptchaPublicKey { get; set; }

    [JsonProperty("algolia")]
    public Algolia Algolia { get; set; }
}

public class User
{
}

public class Rule
{

    [JsonProperty("adTag")]
    public string AdTag { get; set; }

    [JsonProperty("occurrence")]
    public string Occurrence { get; set; }

    [JsonProperty("adNetwork")]
    public string AdNetwork { get; set; }

    [JsonProperty("idRangeStart")]
    public int IdRangeStart { get; set; }

    [JsonProperty("idRangeEnd")]
    public int IdRangeEnd { get; set; }

    [JsonProperty("width")]
    public string Width { get; set; }

    [JsonProperty("height")]
    public string Height { get; set; }
}

public class BannerTop
{

    [JsonProperty("rules")]
    public IList<Rule> Rules { get; set; }

    [JsonProperty("displayType")]
    public int DisplayType { get; set; }
}

public class Rule
{

    [JsonProperty("adTag")]
    public string AdTag { get; set; }

    [JsonProperty("occurrence")]
    public string Occurrence { get; set; }

    [JsonProperty("adNetwork")]
    public string AdNetwork { get; set; }

    [JsonProperty("idRangeStart")]
    public int IdRangeStart { get; set; }

    [JsonProperty("idRangeEnd")]
    public int IdRangeEnd { get; set; }

    [JsonProperty("width")]
    public string Width { get; set; }

    [JsonProperty("height")]
    public string Height { get; set; }
}

public class InlineAd
{

    [JsonProperty("rules")]
    public IList<Rule> Rules { get; set; }

    [JsonProperty("displayType")]
    public int DisplayType { get; set; }
}

public class Rule
{

    [JsonProperty("adTag")]
    public string AdTag { get; set; }

    [JsonProperty("occurrence")]
    public string Occurrence { get; set; }

    [JsonProperty("adNetwork")]
    public string AdNetwork { get; set; }

    [JsonProperty("idRangeStart")]
    public int IdRangeStart { get; set; }

    [JsonProperty("idRangeEnd")]
    public int IdRangeEnd { get; set; }

    [JsonProperty("width")]
    public string Width { get; set; }

    [JsonProperty("height")]
    public string Height { get; set; }
}

public class SidebarBottom
{

    [JsonProperty("rules")]
    public IList<Rule> Rules { get; set; }

    [JsonProperty("displayType")]
    public int DisplayType { get; set; }
}

public class Rule
{

    [JsonProperty("adTag")]
    public string AdTag { get; set; }

    [JsonProperty("occurrence")]
    public string Occurrence { get; set; }

    [JsonProperty("adNetwork")]
    public string AdNetwork { get; set; }

    [JsonProperty("idRangeStart")]
    public int IdRangeStart { get; set; }

    [JsonProperty("idRangeEnd")]
    public int IdRangeEnd { get; set; }

    [JsonProperty("width")]
    public string Width { get; set; }

    [JsonProperty("height")]
    public string Height { get; set; }
}

public class SidebarTop
{

    [JsonProperty("rules")]
    public IList<Rule> Rules { get; set; }

    [JsonProperty("displayType")]
    public int DisplayType { get; set; }
}

public class Placements
{

    [JsonProperty("banner_top")]
    public BannerTop BannerTop { get; set; }

    [JsonProperty("inline_ad")]
    public InlineAd InlineAd { get; set; }

    [JsonProperty("sidebar_bottom")]
    public SidebarBottom SidebarBottom { get; set; }

    [JsonProperty("sidebar_top")]
    public SidebarTop SidebarTop { get; set; }
}

public class ListDefault
{

    [JsonProperty("displayAdEnabled")]
    public bool DisplayAdEnabled { get; set; }

    [JsonProperty("placements")]
    public Placements Placements { get; set; }
}

public class PostDefault
{

    [JsonProperty("displayAdEnabled")]
    public bool DisplayAdEnabled { get; set; }

    [JsonProperty("placements")]
    public  Placements { get; set; }
}

public class RcfgAds
{

    [JsonProperty("list_default")]
    public ListDefault ListDefault { get; set; }

    [JsonProperty("post_default")]
    public PostDefault PostDefault { get; set; }
}

public class Sticky
{

    [JsonProperty("buttons")]
    public IList<IList<string>> Buttons { get; set; }

    [JsonProperty("dismiss")]
    public int Dismiss { get; set; }

    [JsonProperty("noAd")]
    public int NoAd { get; set; }
}

public class Image700
{

    [JsonProperty("width")]
    public int Width { get; set; }

    [JsonProperty("height")]
    public int Height { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("webpUrl")]
    public string WebpUrl { get; set; }
}

public class Image460
{

    [JsonProperty("width")]
    public int Width { get; set; }

    [JsonProperty("height")]
    public int Height { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("webpUrl")]
    public string WebpUrl { get; set; }
}

public class Images
{

    [JsonProperty("image700")]
    public Image700 Image700 { get; set; }

    [JsonProperty("image460")]
    public Image460 Image460 { get; set; }
}

public class PostSection
{

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("imageUrl")]
    public string ImageUrl { get; set; }
}

public class Tag
{

    [JsonProperty("key")]
    public string Key { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }
}

public class Post
{

    [JsonProperty("id")]
    public string Id { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("title")]
    public string Title { get; set; }

    [JsonProperty("type")]
    public string Type { get; set; }

    [JsonProperty("nsfw")]
    public int Nsfw { get; set; }

    [JsonProperty("upVoteCount")]
    public int UpVoteCount { get; set; }

    [JsonProperty("downVoteCount")]
    public int DownVoteCount { get; set; }

    [JsonProperty("creationTs")]
    public int CreationTs { get; set; }

    [JsonProperty("promoted")]
    public int Promoted { get; set; }

    [JsonProperty("isVoteMasked")]
    public int IsVoteMasked { get; set; }

    [JsonProperty("hasLongPostCover")]
    public int HasLongPostCover { get; set; }

    [JsonProperty("images")]
    public Images Images { get; set; }

    [JsonProperty("sourceDomain")]
    public string SourceDomain { get; set; }

    [JsonProperty("sourceUrl")]
    public string SourceUrl { get; set; }

    [JsonProperty("commentsCount")]
    public int CommentsCount { get; set; }

    [JsonProperty("postSection")]
    public PostSection PostSection { get; set; }

    [JsonProperty("tags")]
    public IList<Tag> Tags { get; set; }

    [JsonProperty("descriptionHtml")]
    public string DescriptionHtml { get; set; }
}

public class Tag
{

    [JsonProperty("key")]
    public string Key { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }
}

public class NextPost
{

    [JsonProperty("id")]
    public string Id { get; set; }

    [JsonProperty("url")]
    public string Url { get; set; }

    [JsonProperty("title")]
    public string Title { get; set; }

    [JsonProperty("type")]
    public string Type { get; set; }

    [JsonProperty("nsfw")]
    public int Nsfw { get; set; }

    [JsonProperty("upVoteCount")]
    public int UpVoteCount { get; set; }

    [JsonProperty("downVoteCount")]
    public int DownVoteCount { get; set; }

    [JsonProperty("creationTs")]
    public int CreationTs { get; set; }

    [JsonProperty("promoted")]
    public int Promoted { get; set; }

    [JsonProperty("isVoteMasked")]
    public int IsVoteMasked { get; set; }

    [JsonProperty("hasLongPostCover")]
    public int HasLongPostCover { get; set; }

    [JsonProperty("images")]
    public  Images { get; set; }

    [JsonProperty("sourceDomain")]
    public string SourceDomain { get; set; }

    [JsonProperty("sourceUrl")]
    public string SourceUrl { get; set; }

    [JsonProperty("commentsCount")]
    public int CommentsCount { get; set; }

    [JsonProperty("postSection")]
    public  PostSection { get; set; }

    [JsonProperty("tags")]
    public IList<Tag> Tags { get; set; }

    [JsonProperty("descriptionHtml")]
    public string DescriptionHtml { get; set; }
}

public class Data
{

    [JsonProperty("post")]
    public Post Post { get; set; }

    [JsonProperty("nextPosts")]
    public IList<NextPost> NextPosts { get; set; }

    [JsonProperty("nextCursor")]
    public string NextCursor { get; set; }
}

public class Example
{

    [JsonProperty("page")]
    public Page Page { get; set; }

    [JsonProperty("configs")]
    public Configs Configs { get; set; }

    [JsonProperty("user")]
    public User User { get; set; }

    [JsonProperty("rcfgAds")]
    public RcfgAds RcfgAds { get; set; }

    [JsonProperty("sticky")]
    public Sticky Sticky { get; set; }

    [JsonProperty("data")]
    public Data Data { get; set; }
}



Then use the following class to convert from JSON to C# class data:


Then use the following class to convert from JSON to C# class data:

using Newtonsoft.Json;
using System.Collections.Generic;

namespace Support.CSharp
{
    public static class JsonHelper
    {
        public static string FromClass<T>(T data, bool isEmptyToNull = false,
            JsonSerializerSettings jsonSettings = null)
        {
            string response = string.Empty;

            if (!EqualityComparer<T>.Default.Equals(data, default(T)))
                response = JsonConvert.SerializeObject(data, jsonSettings);

            return isEmptyToNull ? (response == "{}" ? "null" : response)
                                 : response;
        }

        public static T ToClass<T>(string data,
                                   JsonSerializerSettings jsonSettings = null)
        {
            var response = default(T);

            if (!string.IsNullOrEmpty(data))
                response = jsonSettings == null
                    ? JsonConvert.DeserializeObject<T>(data)
                    : JsonConvert.DeserializeObject<T>(data, jsonSettings);

            return response;
        }
    }
}


Try Json.parse in JavaScript

if you want do that c# then try JsonConvert of library newjosnsoft package
Try Json.parse in JavaScript
if you want do that c# then try JsonConvert of library newjosnsoft package


这篇关于如何从JSON C#获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆