--
You received this message because you are subscribed to the Google Groups "Scala.js" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-js+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-js/4e7488a6-9f42-429e-97cc-ef950c353f2a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-js/d63e9228-a6f2-467f-b2a8-8ed9d291b65e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-js/0578c66c-85ca-40a6-aae0-df5046cb93dd%40googlegroups.com.
Hi,
Most Scala.js folks don't directly manipulate json. We have automated serializers instead, which explains why nobody cares about a better json manipulation api.
js.Dynamic itself *does* have an `apply` method, but it's for calling a function, not indexing an array. This is one unfortunate piece of syntax where Scala conflates into 1 syntax something with 2 different syntaxes in js. We can only support 1 of them by default in js.Dynamic.
Cheers,
Sébastien
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-js/7f703a9d-7a8b-473e-b5f9-2a2e836bc9ab%40googlegroups.com.
Can't be bothered with building static bindings as its just some demo code. Was simply bewildered about how hard it is to parse out of the box.I'll probably pimp it to have a nice int idx apply(). Amazed it doesn't have one as standard.