Json serialization help....

G’day all, I am well and truly stumped. Hope someone has come across this before :slight_smile:

I am serializing a JSON file that I get from a web call. It is all work, except for one field. The filed is a 13 digit number. When it is serialized it becomes a 10 digit number and I don’t know why. I have tried int, int16, int32, int64, double, long and float. Nothing gives the actual value that is in the file.

Any suggestions would be greatly appreciated :slight_smile:

Use a string!

1 Like

sigh…string works…but, but, it isn’t a string in the file! haha
Thanks for making me try the obvious. I am going to go hide under a rock now.
All the values seem to have 3 or 4 trailing 0’s. I guess I could remove them before casting to int. Should stop the problem…maybe.