I'm testing the new version: 1.0 and I have seen t...
# serialization
f
I'm testing the new version: 1.0 and I have seen the change of
json{}
to
buildJsonObject{}
@sandwwraith Why was the change made for a more verbose option? Is there any plan to make it less verbose? Sample:
Copy code
jsonArray { //version 0.20.0
 +"fic.sld"
 +json {
   "age" to 123
 }
}

buildJsonArray { //version 1.0
 add("fic.sld")
 add(buildJsonObject {
    put("age", JsonPrimitive(123))
 })
}
2
m
I guess for consistency with
buildString
,
buildList
,
buildMap
etc. All builders start like that.
And that
+
prefix hack is a good way make autocompletion useless. Difficult to figure out what to do without looking up documentation.
d
to
was also problematic if the wrong function was resolved.
s
Yes, those all are valid points behind this decision
+
also worked very badly with numbers 🙂
😂 2