ChatGPT clearly couldn't do it.
Far too many misunderstanding in this code, $urlget does not return data from the website, incorrect if/else syntax, incorrect space delimited pipe '|', and incorrect assumption that mIRC has a $json built-in function, which it doesn't.
Join the channel in my signature if you want real time help, but helping you with this here... nah.