Initial version. Adapted from RT.Util's Json.cs and may therefore have a few remnants of its JSON past.