basically the same functionality as the old nak.

This commit is contained in:
fiatjaf
2023-03-23 22:36:00 -03:00
parent 570ee55359
commit 88dd984095
3 changed files with 88 additions and 23 deletions

View File

@@ -0,0 +1,18 @@
import io.circe.Printer
object Utils {
val jsonPrinter = Printer(
dropNullValues = false,
indent = " ",
lbraceRight = "\n",
rbraceLeft = "\n",
lbracketRight = "\n",
rbracketLeft = "\n",
lrbracketsEmpty = "",
arrayCommaRight = "\n",
objectCommaRight = "\n",
colonLeft = "",
colonRight = " ",
sortKeys = true
)
}