JSONSchemaEditor.Viewer (json_schema_editor v0.9.9)
View SourceA component for displaying JSON with syntax highlighting.
It supports structural punctuation highlighting and indentation guides.
Examples
Passing a map
<JSONSchemaEditor.Viewer.render json={%{"a" => 1, "b" => [true, nil]}} />Passing a JSON string
<JSONSchemaEditor.Viewer.render json="{\"foo\": \"bar\"}" />