Function signature | |
---|---|
st.json(body) | |
Parameters | |
body (Object or str) | The object to print as JSON. All referenced objects should be serializable to JSON as well. If object is a string, we assume it contains serialized JSON. |
Example
st.json({ 'foo': 'bar', 'baz': 'boz', 'stuff': [ 'stuff 1', 'stuff 2', 'stuff 3', 'stuff 5', ], })(view standalone Streamlit app)