amnaredo / test

0 stars 0 forks source link

empty collection serialization #270

Open amnaredo opened 2 years ago

amnaredo commented 2 years ago

how to reproduce: create an empty sequence of strings

val arr = Seq.empty[String] val json = Obj("arr" -> Arr(arr.map(v => Str(v)))) println(ujson.write(json))

Actual Output: {"arr":[[]]}

Expected Output: {"arr":[]} ID: 311 Original Author: toStars21

amnaredo commented 2 years ago

questions go in the gitter channel Original Author: lihaoyi

amnaredo commented 2 years ago

but as for me it looks like deffect, not a question

questions go in the gitter channel

Original Author: toStars21