Unique JSON-LD ( from plain text field ) not rendering on <head> of page

There are multiple blog pages, blog’s content is fetched via CMS and each blog has different JSONLD structure/code.

Due to different JSON LD code for each blog not using CMS to fetch data.

Idea is to put entire JSON-LD code in plain text in CMS and fetch inside head tag of page.

<head> [section of page]

<script type="application/ld+json">
[code is fetch via CMS]
</script>

But in page source I got &quot; for each double quote [ " ]

Screenshot 2020-12-09 at 1.23.06 PM

How to handle this above issue.
Any JS solution?

Any success with this issue?

See JSON schema from CMS - #2 by webdev