Archives

Archives / 2007 / January
  • Five Things Meme

    The five things meme continues to consume the blogosphere, devouring all in its path. JD has tagged me so in the interests of playing a long I will now post 5 exclusive, never heard before things about me. Please make sure your tray is upright and locked, and assume the edge of your seat position.

    1. Apart from playing around with HTML and a little JavaScript at college, I didn't really start programming until my second year of university. The paper than introduced me was on VB 6.0, and I enjoyed it so much I got an A+ and then came back to tutor it the year after.
    2. I can't scull. I just can't. Alas, my Fear Factor/Survivor career is over before it ever began. I know I'll never pass the "The person who drinks the glass of {disgusting substance} fastest wins" challenge.
    3. My favourite 80s TV program is DuckTales. That one is for you TY [:)]
    4. I have a fairly large burn scar on my left bicep, caused by a hot drink and an overly inquisitive baby (me). I was only 3 at the time and I don't remember it happening. The scar has also faded over the years to the point where no one notices unless I point it out. I actually quite like it because I usually win when guys start comparing.
    5. My blood type is O-negative, universal donor. If you're stranded on a strange island by a plane crash and you need a blood transfusion, I'm your guy.

    My victims are: Porges, Cynos, Jerms, Brendan and Tyler Cowen and Alex Tabarrok of Marginal Revolution fame. Go meme go!

  • Json.NET 1.2 released

    An update! A blog post! Hope everyone had a good Christmas [:)]

    This long overdue release of Json.NET is mostly the result of feedback from users. Thanks for all the suggestions.

    • New feature - Added JsonIgnoreAttribute. This is the equivalent to XmlIgnoreAttribute for XML serialization.
    • New feature - Added generic DeserializeObject<T> methods to JavaScriptConvert.
    • New feature - Added AspNetAjaxDateTimeConverter. Converts DateTimes to and from the ASP.NET AJAX format, e.g. "@1229083932012@".
    • Change - Improved many of the library's exception messages to provide more detail.
    • Bug fix - Fixed issues around read-only and write-only properties when serializing.
    • Bug fix - Fixed typo in XmlNodeConverter.

    What's New

    A number of people have emailed that properties having a getter but not a setter, and vise-versa, could potentially cause an error when serializing or deserializing. This was something I had overlooked and is fixed in this release. Special thanks to those who took the time to email source of the fix they made to their own copy.

    Also requested was an attribute to make the serializer ignore a member, similar to the XmlIgnoreAttribute for .NET XML serialization. These requests could be related to the previous bug but it is a quick and simple addition, and is a good feature to have. JsonIgnoreAttribute is included in this release.

    Finally the new converter, AspNetAjaxDateTimeConverter, provides a means to output dates that conform to the JSON 'standard' as well as interoperability with Microsoft's ASP.NET AJAX serializer. You can read more about the ASP.NET AJAX date format here.

    Download Json.NET - Json.NET dll and C# source code.