json2.decode
silently drops decoding all map values other than string
#18734
Labels
Bug
This tag is applied to issues which reports bugs.
Describe the bug
json2.encode
onmap[string]Any
outputs a properly formatted json. Callingjson2.decode
on this string quietly removes all integers in the resultingmap[string]Any
Problem illustrated here
Expected Behavior
No loss of data going from
json2.encode
tojson2.decode
Current Behavior
All integers disappear
Reproduction Steps
Please see linked repo
Possible Solution
No response
Additional Information/Context
No response
V version
Current V version: V 0.4.0 049d685, timestamp: 2023-07-01 14:07:51 +0300
Environment details (OS name and version, etc.)
The text was updated successfully, but these errors were encountered: