During assignment to ENV_VAR, add the '\' slash characters to escape the new lines '\n' and double quotes.
ENV_VAR="{\"example\": \"multi\\nline\\n\"}" echo $ENV_VAR > example.json
Output
cat example.json {"example": "multi\nline\n"}