Serialize long value in json and deserialize on server

Please report bugs here. If you are unsure whether something is a bug or an expected behavior, please post it on the "Technical Support" forum instead, and wait for a moderator to handle/move the post.
hamishebahar
Posts: 8
Joined: Sun May 22, 2016 2:58 am

Serialize long value in json and deserialize on server

Postby hamishebahar » Sat Apr 28, 2018 12:56 am

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.

JS-Support @Userware
Site Admin
Posts: 915
Joined: Tue Apr 08, 2014 3:42 pm

Re: Serialize long value in json and deserialize on server

Postby JS-Support @Userware » Wed May 02, 2018 7:46 am

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


Return to “Bug Reports”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest