json.decode keys are strings - tostring when needed
π» Expression 2β’Updated 2 days agoβ’0 views
json.decode returns string keys/values safely - loop pairs and assign b[tostring(k)]=v if you need guaranteed string keys; tostring itself won't error on stringβ¦
Does tostring() error on json.decode string values
json.decode returns string keys/values safely - loop pairs and assign b[tostring(k)]=v if you need guaranteed string keys; tostring itself won't error on strings.