我反序列化时这个字符串发生了什么?

时间:2015-03-18 14:08:20

标签: c# asp.net asp.net-web-api json.net

我正在使用Json.net对字符串进行反序列化。它开始就是生命....

免费冥想&瑜伽 - 从晚上7:30开始。周三。 2015年1月14日至3月25日

并在行之后:

_json = JsonConvert.DeserializeObject(jsonString,new JsonSerializerSettings());

变为:

免费冥想&瑜伽 - 从晚上7:30开始。周三。 2015年1月14日至3月25日

(注意破折号所在的有趣符号)

我也用过:

JObject.Parse(jsonString);

有谁能告诉我Json.net对字符串做了什么以及如何禁用它?

更新:

这是我正在反序列化的json:

{
utc_offset: 0,
venue: {
country: "gb",
city: "Guildford, GU1 4LH",
address_1: "Ward Street",
name: "The Guildford Institute",
lon: -0.572187,
id: 23518868,
lat: 51.237408,
repinned: false
},
headcount: 0,
distance: 24.1162166595459,
visibility: "public",
waitlist_count: 0,
created: 1418084960000,
maybe_rsvp_count: 0,
description: "<p>Hello there! We'd like to welcome you to our FREE weekly Sahaja Yoga meditation meetings hosted by Paddy, Mario &amp; Justyn which take place at the </p> <p><b>The Guildford Institute, Ward Street, Guildford, GU1 4LH – </b></p> <p>on <b>Wednesday evenings at 7.30pm - 9.00pm for ten weeks between 14th January to 25th March<br/></b></p> <p>With Sahaja Yoga Meditation we generally sit on chairs to achieve Yoga, effortlessly &amp; spontaneously. As such no Asanas (exercises) are required, no mat or special clothing. </p> <p><br/>All across the globe, many are seeking new sources of energy. Meanwhile, the most transformative energy of all is hiding in plain sight, within us. It's natural, sustainable, and infinitely renewable. It's called inner kundalini energy. And everyone already has it — everyone!. </p> <p>It is often likened to an inner feminine or motherly energy which automatically knows about us and what is needed to help us restore balance and harmony within our subtle being. It works spontaneously, effortlessly, organically and cannot be paid for.</p> <p>Sahaja Yoga Meditation is a simple time-honoured technique that lets you tap into that energy and harness its power to become better balanced and better connected to yourself — emotionally, physically, mentally and spiritually.</p> <p>If you're having trouble juggling the challenges in your life, Sahaja Yoga Meditation might well help you manage stress, master your emotions and find solutions to your problems. You may enjoy better health, better focus, and a deeper understanding of the universe and your place in it.</p> <p>Meditation is not just for mystics and monks. Sahaja Yoga meditation is for everyone. Anyone can do it. It's that easy. But with the Sahaja Yoga experience, you'll quickly realise, it isn't your typical Meditations 'R Us type class. It's much more than just feeling peaceful and relaxed. Sahaja Yoga Meditation has many layers, varied and deep. Explore at your own pace, in your own way. Our volunteer experts are always available to help.</p> <p>Ready to plug into your inner energy? A Sahaja Yoga Meditation class is a great way to start. A few minutes of your life may be all it takes to connect to your inner energy and light the path to lifelong transformation. Sahaja Yoga is more than a temporary solution or quick relief — it is a journey, rather than a destination. It's all about energy — guaranteed pure and carbon neutral. You can never have too much of it.</p> <p>The best part? All classes are free. No strings, no catch.<br/>Everyone is welcome. Bring a friend, bring your self — all are welcome.</p>",
event_url: "http://www.meetup.com/Free-Mediation-Yoga-Guildford/events/220350149/",
yes_rsvp_count: 10,
name: "Free Meditation & Yoga – Start at 7.30pm. Wednesdays. 14 Jan to 25th Mar 2015",
id: "nzzzclytfbxb",
time: 1426707000000,
updated: 1425311570000,
group: {
join_mode: "open",
created: 1418084432000,
name: "Free Mediation & Yoga Guildford",
group_lon: -0.5699999928474426,
id: 18241268,
urlname: "Free-Mediation-Yoga-Guildford",
group_lat: 51.2400016784668,
who: "Members"
},
status: "upcoming"
}

0 个答案:

没有答案