In older versions (like 0.20.0), you could create ...
# serialization
r
In older versions (like 0.20.0), you could create json like this:
Copy code
json {
  "foo" to "bar",
  "baz" to json {
    "gaz" to "gar"
  }
}
Now it seems its a lot more verbose, with calls to
put
. Was that intentional, or am I missing something?
d
Was intentional. The usage of
to
was problematic because you could accidentally import the wrong one from the standard library and it would silently fail to work.
👍 1
r
Thanks
p
without collection literals (and/or multiple extension receivers) it's basically impossible to fake up better syntax
this technically compiles but is absolutely disgusting