Browsing Wiremod's section
← Back to ACE
πŸ’¬

Community answer

Collected from the ACE community Discord archive around 2019-07-13. It may be informal or outdated β€” anyone can edit this page to improve it. Original discussion

json.decode keys are strings - tostring when needed

πŸ’» Expression 2Updated 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.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.