I have a simple bash script

```
#!/bin/bash
TEXT=$(<"$(pwd)/data/test.json")
echo "$TEXT"

```

Which should read the whole file and assign it to a variable `TEXT` however, when I run it, the only output I get is a newline character. In the same directory, as the script is, I tried to run

```
cat "$(pwd)/data/test.json"

```

And it gives me the following output

```
{ "data": true }

```

Why is the bash script not working?

Edit:

My bash version is `GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)`