View Issue Details

IDProjectCategoryView StatusLast Update
0030999RunnerFunctionsPublic2020-01-15 16:49
ReporterFritzAssigned ToFritz 
PriorityMediumSeverityB - MajorReproducibility100%
Status ResolvedResolutionFixed 
Product Version2.2.5 
Target Version2.3.0Fixed in Version2.3.0 
Summary0030999: Functions: json_encode() truncates int64 values to be int32s
DescriptionIf you attempt to print a ds_map using json_encode -

show_debug_message("social event: " + json_encode(async_load));

then any int64 values contained in the map are printed as int32s
Steps To ReproduceRun enclosed sample (any platform, but was found when testing Switch),
press X to load leaderboard.
Observe the values printed when the social async leaderboard message is received do not match that printed as "Found scoredata "
TagsRunner
1.4 Found In
2.x Runtime Found In
2.x Runtime Verified In

Activities

Fritz

2019-06-04 14:47

Manager  

SwitchLeaderboards (1).yyz (42,283 bytes)

Fritz

2020-01-14 16:17

Manager   ~0065292

and
28a3db3ad17eff122a37bcfbfef1a7feda91ace7
8730641a608334e474a1ecf8089c48e163f4d518
64f5c278bca1a97f145a236e1ccb00c52c3f9fc8

Dan

2020-01-15 16:48

Adminstrator   ~0065296

This will now determine if the number could be saved as an int32 or a double, and if neither of those are suitable then it will be written as a string with a prefix so we know to convert it back into an int64 on load.