How can i get an array(json formatted) from html which is embeded in streamlit

here is how i embed html

import streamlit as st
import extra_streamlit_components as stx
import codecs
import streamlit.components.v1 as stc

def my_html(html_file,width=300,height=300):,'r')


********Now problem is that html generates a json array,how can i access that in python script…maybe using cookies or something?