3 ms·
I don't think "encoding/json" is fully working yet. Seems to be importable now, although tests are not passing. See supported packages here: https://tinygo.org
by maxmcd 4y ago
I don't think "encoding/json" is fully working yet.
Seems to be importable now, although tests are not passing. See supported packages here: https://tinygo.org/docs/reference/lang-support/stdlib/ https://tinygo.org/docs/reference/lang-support/stdlib/
Definitely still a ways to go before the full stdlib is usable.
Looks like your code still fails at runtime with the error:
panic: unimplemented: (reflect.Type).NumMethod()
Tested here: https://play.tinygo.org/ https://play.tinygo.org/