One of my static pages is ranking really well and we receive a large amount of traffic from this page. Recently we dropped from #2 to #5 so I'm trying to add JSON-LD structured data to this static page.

My issue is that while the structured data validates fine with the Google Structured Data Testing Tool, the testing tool can not not find it on the page. I moved it from the <body> to the <head> section but it's still not working and then I saw when using View Source that the <script type="application/ld+json"> changed to <script type="text/javascript"> so maybe that's why Google is not seeing it.

Does anyone know how to stop <script type="application/ld+json"> from changing to <script type="text/javascript"> when x-cart publishes a static page?

I can confirm it's the <script type="application/ld+json"> changing to <script type="text/javascript"> that is the problem. I copied the entire view source code from the browser and pasted it into the code area on Google Structured Data Testing Tool. I then changed <script type="text/javascript"> back to <script type="application/ld+json"> and the Google testing tool finds and verifies it. I tested with the structured markup data pasted at the end of the article text while editing the static page.