code: def test_json():
      def script():
          import streamlit as st
  
          st.json(["hi", {"foo": "bar"}])
  
      at = AppTest.from_function(script).run()
      j = at.json[0]
      assert j.value == '["hi", {"foo": "bar"}]'
      assert j.expanded
  
      repr(j)
  
imports: from datetime import date, datetime, time
  import numpy
  import pandas
  import pytest
  from streamlit.elements.markdown import MARKDOWN_HORIZONTAL_RULE_EXPRESSION
  from streamlit.testing.v1.app_test import AppTest
label_desc: Use image node_id 15 for calling a global function with example usage: test_json() without return types