Running the JSON encoding/decoding example in the playground yields
You just found a bug. V can't compile this program, but it should. Please create a GitHub issue.
A smaller example of the bug:
import json
struct Test {
s string
}
user := json.decode(Test, '{"s": "Frodo"}') or { return }
println(user.s)
Output:
`` needs to return ``
Since the playground has been closed and the imports have been fixed, I will close this issue.
Most helpful comment
A smaller example of the bug:
Output: