I have some data in a file called `data.json.html` in an Apps Script project that I would like to access from JavaScript. The file looks like this:

```
<script>
var data = {"book1":{"1":25, "2":17}, "book2":{"1":37, "2":4, "3":12}};
</script>

```

I have tried to access this data by the following means:

Attempt #1
==========

```
<script type="text/javascript" src="data.json"></script>
<script>
var books = JSON.parse(data);
</script>

```

Attempt #2
==========

```
<?!= include("data.json") ?>
<script>
var books = JSON.parse(data);
</script>

```

Neither one of these worked. Can anyone tell me the correct way of doing this?

**Edit:** Sorry I forgot to include information about what "it doesn't work" means. Basically, the data doesn't make it into the variable, it's supposed to go into, and there's no error telling me what happened in the execution transcript.

If anyone wants to look at the full script, it is embedded in the Google Doc [here](https://docs.google.com/document/d/1It7SZiDiiossxMkqiu5FUjMe4MItVfNHN3iU-ApNF1s/edit?usp=sharing). Just go to Tools > Script editor... to find it.