We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Im trying to use swap json out with packedJson but am stuck with an error that makes no sense to me.
This is my function
func `%`*(t : StringTableRef): JsonNode = let o = newJObject() if t == nil: return for i,v in t: o[i] = newJString(v)
which compiles fine under stdlib but with packedJson I get the following..
whip.nim(24, 18) Error: type mismatch: got <JsonTree, string, JsonNode> but expected one of: proc `[]=`(obj: var JsonTree; key: string; val: JsonNode) ...
The text was updated successfully, but these errors were encountered:
Never mind - I found the issue (let != var)
Sorry, something went wrong.
No branches or pull requests
Im trying to use swap json out with packedJson but am stuck with an error that makes no sense to me.
This is my function
which compiles fine under stdlib but with packedJson I get the following..
The text was updated successfully, but these errors were encountered: