Call a JavaScript library from Kotlin code as a static type
Ahmed Tarek

Hey, nice work there! The usage of a data class in the end there is the correct way to go in my opinion, but if you for some reason choose to stay with the animData as a js object, you could use the infix function to in order to create Paris slightly more elegantly.

val animData = json(
“container” to div,
“renderer” to “svg,
“loop” to true,
“autoplay” to true,
“path” to jsonFileUrl)