Taking string values from .json file for WordPress page

I have a wordpress based software stroe. I have a .json file that stores current software version numbers like below in my ftp folder.

{
  "Name": "MySoftwareProduct",
  "MajorVersion": "1",
  "MinorVersion" : "0",
  "MaintenanceVersion" : "0"
}
  • Is it possible to write a code in wordpress’ text editor (in the product page) that takes the string values from the .json file and gives the software version number like that Current version is v1.0.0 ?

  • Is using this method vulnerable for hacker attacks?

Any help would be appreciated..

NOTE: Sorry I am a newbie in WordPress 🙂

Source: Ask Javascript Questions

LEAVE A COMMENT