I have a JSON file which contains a multi-dimension array of information. I would like to use it to populate a web page, but I don't want to manually amend the content of the file. I can't include a snippet of the file, due to the contents, but it looks like:
{"something":{"value1":0,"value2":0,"value3":10000,"value4":"*"}}
I can use the data if the file is formatted like:
var data = [{"something":{"value1":0,"value2":0,"value3":10000,"value4":"*"}}]
but as stated I don't want to manually add the declaration of "data" (and the squared brackets).
How can I do this within my html page? Do I need to find a way to prepend and append, saving in a new file, or is there some other way?
Help is appreciated.