Here my script:

```sh
#!/bin/bash

read -r -d '' content << VAR
one
two
three
{"foo":"bar"}
{cron":"0 1 * * *"}
VAR

for line in $content; do
  echo "==| ${line}"
done

```

without line `{cron":"0 1 * * *"}` it works perfectly and produces correct output:

```sh
==| one
==| two
==| three
==| {"foo":"bar"}

```

but with line `{cron":"0 1 * * *"}` it prints corrupted output:

```sh
==| one
==| two
==| three
==| {"foo":"bar"}
==| {cron":"0
==| 1
==| LICENSE
==| README.md
==| ed
==| y.sh
==| LICENSE
==| README.md
==| ed
==| y.sh
==| *"}

```

I'm running this script on `macOS`.