Which gives a nice interactive, collapsable, searhable display.
Not working as expected: JSON output in kotlin
I tried achieving the same with Kotlin:
val jsonStr = """
{"a": [1, 2, 3, 4], "b": {"inner1": "helloworld", "inner2": "foobar"}}
"""
MIME("application/json" to jsonStr)
This is interpreted as JSON value of string, rather than a JSON object (however Jupyter seems to still think it is showing JSON - see the root label and the search box).
Is there a way to properly render a json value with MIME?
Baseline: JSON output in python
In a python notebook, I can do the following:
Which gives a nice interactive, collapsable, searhable display.
Not working as expected: JSON output in kotlin
I tried achieving the same with Kotlin:
This is interpreted as JSON value of string, rather than a JSON object (however Jupyter seems to still think it is showing JSON - see the
root
label and the search box).Is there a way to properly render a json value with
MIME
?