Page 1 of 1

Serialize long value in json and deserialize on server

Posted: Sat Apr 28, 2018 12:56 am
by hamishebahar
Hi,
I'm using cshtml5 in my client and my server is fully c# code,for json serialize and deserialize on server i'm using json.net.

Problem is when I serialize long value to json in cshtml5 it will create an object "{"a":1000,"b":0,"c":0}" i cannot deserialize this on server side with json.net package to long value.

Re: Serialize long value in json and deserialize on server

Posted: Wed May 02, 2018 7:46 am
by JS-Support @Userware
Hi,

Can you please post a sample code to reproduce the issue? I have tried serializing a long (including long.MaxValue) and it serialized correctly (=9223372036854776000) (tested under Chrome).

Thanks,
Regards,
JS-Support