Add JsonDict class for JSON output.

This commit is contained in:
akwizgran
2018-09-24 10:48:28 +01:00
committed by Torsten Grote
parent bda52ea548
commit 0bb80b1a15
8 changed files with 78 additions and 70 deletions

View File

@@ -1,8 +1,9 @@
package org.briarproject.bramble.identity
import org.briarproject.bramble.api.identity.Author
import org.briarproject.briar.headless.json.JsonDict
fun Author.output() = mapOf(
fun Author.output() = JsonDict(
"formatVersion" to formatVersion,
"id" to id.bytes,
"name" to name,