How do I access the content of a JSON template?

How do I programmatically access a JSON template?

I need to know if a theme app extension is installed and I was told by the Shopify tech support that it was possible to get this information but I cannot find how to do this. They will only link me to pieces of documentation that I have already read 10 times without finding an answer.

Thank you