frank
08/14/2020, 3:13 PMjson{}
to buildJsonObject{}
@sandwwraith Why was the change made for a more verbose option? Is there any plan to make it less verbose?
Sample:
jsonArray { //version 0.20.0
+"fic.sld"
+json {
"age" to 123
}
}
buildJsonArray { //version 1.0
add("fic.sld")
add(buildJsonObject {
put("age", JsonPrimitive(123))
})
}
Marc Knaup
08/14/2020, 3:27 PMbuildString
, buildList
, buildMap
etc.
All builders start like that.Marc Knaup
08/14/2020, 3:27 PM+
prefix hack is a good way make autocompletion useless.
Difficult to figure out what to do without looking up documentation.Dominaezzz
08/14/2020, 4:27 PMto
was also problematic if the wrong function was resolved.sandwwraith
08/14/2020, 7:53 PMsandwwraith
08/14/2020, 7:54 PM+
also worked very badly with numbers 🙂