The following code works fine on current GA releases of mono 3.4.0 and
Newtonsoft.Json 6.0.3, btw. It's simplistic, but just add whatever else you
have in your hashtable that's resulting in an exception and reply with that
source. I'm sure it isn't the hashtable itself that can't be serialized.
using System;
using System.Collections;
using Newtonsoft.Json;
namespace Test {
public class Ser {
public static void Main(string [] args) {
var ht = new Hashtable();
ht.Add("test", 1234);
var json = JsonConvert.SerializeObject(ht);
Console.WriteLine(json);
}
}
}
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list