how to create JavaScript anonymous object in kotlin? i want to create exactly this object to be passed to nodejs app
var header = {“content-type”:”text/plain” ,
One more possible solution:
object { val `content-type` = "text/plain" val `content-length` = 50 }
It seems that it does not work anymore with escaped variable names.