// <summary>
		/// A helper method for serializing an object to JSON
		/// </summary>
		/// <param name="value"></param>
		/// <returns></returns>
		public static string Serialize(object value, JsonWriterSettings settings)
		{
			StringBuilder output = new StringBuilder();
			
			using (JsonWriter writer = new JsonWriter(output, settings))
			{
				writer.Write(value);
			}
			
			return output.ToString();
		}
		public void Write (JsonWriter writer, Type type, object value) {
			Dictionary<string,object> dict = WriteJson (type,value);
			writer.Write (dict);
		}