I've serialized an object using Newtonsoft's JSON serializer, and the DateTime has come through as:
/Date(1237588418563+0000)/
When I $.evalJSON() on that, it is an object but I can't find any normal Date methods like toUTCString on it.
Any ideas what I can do with this?
...
Hi guys:
Our legacy code use Newtonsoft.Json.JsonWriter to produce a javascript array like:
[["1","zxc"],["2","fifa"],["3","fgh"]].
I wounder if Newtonsoft.Json provide counterparts to help filter out or get specific element, says ["3","fgh"].
...
Hi!
So I'm trying to deserialize an object that has properties: $ref and $id. I have tried going between Dictionary as well as an object where I have specified namingconventions via JsonPropertyAttribute. Serialization works, but deserialization doesn't. The error I keep getting is:
Additional text found in JSON string
after fini...
Hi everybody,
I am getting an error when trying to serialize an object products.
Product product = new Product();
product.Name = "Apple";
product.Expiry = new DateTime(2008, 12, 28);
product.Price = 3.99M;
product.Sizes = new string[3,2] { {"Small","40"}, {"Medium","44"}, {"Large","50"} };
string json = JsonConvert.SerializeObje...
Hi guys:
I see the error in my prod server log; can u give me any hint about what kinds of situations would trigger the error? Thanks.
Token PropertyName in state Start would result in an invalid JavaScript object.
2010-08-02 04:33:56,446 DEBUG 10 XXX - at Newtonsoft.Json.JsonWriter.AutoComplete(JsonToken tokenBeingWritten)
at Newt...