Skip to content

Commit

Permalink
Fix conversion of records.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenwenzel committed Jan 16, 2024
1 parent 73383af commit 50dcc4a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ class KvinService(path: List[String], store: Kvin) extends RestHelper with Logga
def recordToJson(r : Record) : JObject = JObject(r.iterator().asScala.map { e =>
JField(e.getProperty.toString, e.getValue match {
case r : Record => recordToJson(r)
case other => value2Str(other)
case uri : URI => JObject(JField("@id", uri.toString))
case other => decompose(other)
})
}.toList)

Expand Down

0 comments on commit 50dcc4a

Please sign in to comment.