使用奇怪的属性名称

时间:2016-10-10 14:06:13

标签: c# json parsing

我试图将以下对象解析为C#对象。 json元素如下所示:

{
"type": "node",
"id": 101440589,
"lat": 52.0952096,
"lon": 5.1266853,
"tags": {
    "addr:city": "Utrecht",
    "addr:housenumber": "44",
    "addr:postcode": "3572CA",
    "addr:street": "Wittevrouwensingel",
    "amenity": "restaurant",
    "contact:website": "http://spaghetteria-pastabar.nl/",
    "cuisine": "italian",
    "name": "Spaghetteria",
    "old_name": "Kimono",
    "source": "BAG",
    "source:date": "2014-02-11"
  }
},

问题是从标签列表中获取值。 C#不喜欢名字中的:我该怎么做呢?提前谢谢!

0 个答案:

没有答案