Skip to content

Commit

Permalink
Correctly convert record elements to JSON.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenwenzel committed Jan 16, 2024
1 parent 59f86ff commit 73383af
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,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 someEvent : Record => recordToJson(someEvent)
case other => decompose(other)
case r : Record => recordToJson(r)
case other => value2Str(other)
})
}.toList)

Expand Down

0 comments on commit 73383af

Please sign in to comment.