How do I embed JSON code to a page?

[ad_1]

I used Image Map Pro to add links to different parts of an image. When I was finished, it game me a chunk of JSON code. How do I put that on my site? I use Gutenburg blocks, and there’s a JSON block, but it wants me to upload a file, not a string of code. HELP lol!

[ad_2]
3 Comments
  1. Can’t you just put it as a text block and change the text format to ‘code’?

  2. I never used image map pro… but what i see is that You are exporting the save file. Thats not how to do it to embed the image into your page… You need to follow this

  3. You typically don’t embed json code since it’s a data structure thet needs to be parsed and rendered in some way. Newer versions of wordpress reject json code even if file extension is changed to something like txt.

    From this map service you are using you should be able to get either an iframe embed code and/or an html file containig the map that you can publish yourself.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer