You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thing is that when if I read the string
{"bool_value":true,"double_value":2.0,"int_value":10,"level1":{"list_value":[3,"hi",false],"tmp":5.0},"string_value":"hello"}
and i print it back, i get
{"bool_value":true,"double_value":2,"int_value":10,"level1":{"list_value":[3,"hi",false],"tmp":5},"string_value":"hello"}
where both "double_value" and "tmp" are written back as integers instead of double. This is an issue as when i read them back in next time they will be considered integers instead of doubles (floats).
same issue also happens with "dump(4)" instead of "dump()"
is there a way to preserve the type upon printing?
regards
Riccardo
The text was updated successfully, but these errors were encountered:
Hello,
i am having some trouble with my tests.
thing is that when if I read the string
{"bool_value":true,"double_value":2.0,"int_value":10,"level1":{"list_value":[3,"hi",false],"tmp":5.0},"string_value":"hello"}
and i print it back, i get
{"bool_value":true,"double_value":2,"int_value":10,"level1":{"list_value":[3,"hi",false],"tmp":5},"string_value":"hello"}
where both "double_value" and "tmp" are written back as integers instead of double. This is an issue as when i read them back in next time they will be considered integers instead of doubles (floats).
same issue also happens with "dump(4)" instead of "dump()"
is there a way to preserve the type upon printing?
regards
Riccardo
The text was updated successfully, but these errors were encountered: